🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by David Elliott Fri, 20 Oct 1989 16:10
Printing process ids in shell scripts
#674
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads