[gnu.bash.bug] Printing process ids in shell scripts

dce@sony.com (David Elliott) (10/20/89)

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