🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Bill Trost,Box 607,ext 571,497 Mon, 22 Jan 1990 00:14
Brace yourself for a bug :-)
#858
Author: Bill Trost,Box 607,ext 571,497
Date: Mon, 22 Jan 1990 00:14
10 lines
713 bytes
The command line
	{ sleep 3 ; /bin/echo foo } &
gets parsed as
	sleep 3 ; /bin/echo foo &

under bash 1.04 on our machines here.  /bin/sh interprets it as
	( sleep 3; /bin/echo foo ) &
if a semicolon is placed after "foo" (and passes "}" to echo
otherwise; i.e., "}" must come first on the command line to have its
meaning as a grouping symbol).
Re: Brace yourself for a bug :-)
#863
Author: Chet Ramey
Date: Tue, 23 Jan 1990 22:04
19 lines
1199 bytes
In article <13925@reed.UUCP> trost@reed.bitnet (Bill Trost,Box 607,ext 571,497) writes:
>The command line
>	{ sleep 3 ; /bin/echo foo } &
>gets parsed as
>	sleep 3 ; /bin/echo foo &

I'd like to congratulate Bill for always coming up with the most interesting
bugs.  This one took a while.

The problem is not the parsing, but the execution (that is, the line is
parsed correctly, but the execution of group commands discards this kind of
background information).  I have sent a fix to Brian. 

Chet
-- 
Chet Ramey				"Can't you pay a grad student to 
Network Services Group			 read the manual for you?"
Case Western Reserve University			-- Bill Wisner,
chet@ins.CWRU.Edu				   	to Peter Honeyman
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