🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #674

Printing process ids in shell scripts

#674
From: David Elliott
Date: Fri, 20 Oct 1989 16:10
31 lines
1193 bytes
Once again, this showed up when using bash with C news inews.

The final "posting" of the article is done in the background,
using the construct

	( commands ) &

Using sh from 4.3BSD, this construct causes no output other
than that from the commands.  WIth bash, the line

	<pid>

is also printed, making news posting annoying.  I don't want
to redirect the output of the subshell, since that could
result in lost error messages.

For the time being, I think I've reproduced the behavior of the
other shells by changing execute_cmd.c around line 213 to
say

	if (asynchronous) {
	  if (interactive) {
	    describe_pid(pid);
	  }
	} else {
	...
	}
-- 
David Elliott
dce@sony.com | ...!{uunet,mips}!sonyusa!dce
Technical Details
Message-ID: <1989Oct20.161038.6131@sony.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!pacific.mps.ohio-state.edu!gem.mps.ohio-state.edu!apple!mips!sony.com!dce

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!pacific.mps.ohio-state.edu!gem.mps.ohio-state.edu!apple!mips!sony.com!dce
From: dce@sony.com (David Elliott)
Newsgroups: gnu.bash.bug
Subject: Printing process ids in shell scripts
Message-ID: <1989Oct20.161038.6131@sony.com>
Date: 20 Oct 89 16:10:38 GMT
Reply-To: dce@icky.sony.com (David Elliott)
Distribution: gnu
Organization: Sony Microsystems Corp.
Lines: 31