sh syntax question

00771g-Lukas lukas at ihlpf.ATT.COM
Tue Apr 25 01:53:50 AEST 1989


Thanks to Chris Torek, Greg Ubben, and Dave Elliott for their replies.
The answer seems to be that that is just the way that it is. In the
case of the Bourne shell anyway, ";" does not always
equal a <newline>.

BTW. As Greg pointed out:

> Also, someone pointed out that there is a very trivial bug with "$@" in
> Bourne shell only, in that if there are no arguments, "$@" will actually
> expand to one null arguement.  Use ${@:+"$@"} to fix this.
-- 

	John Lukas
	att!ihlpf!lukas
	312-510-6290



More information about the Comp.unix.questions mailing list