Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!lll-winken!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.unix.questions Subject: Re: sh syntax question Message-ID: <1506@auspex.auspex.com> Date: 25 Apr 89 19:40:50 GMT References: <8332@ihlpf.ATT.COM> Reply-To: guy@auspex.auspex.com (Guy Harris) Distribution: usa Organization: Auspex Systems, Santa Clara Lines: 8 >> 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. Well, some versions of the Bourne shell, anyway. The S5R3 version has this fixed, so any system whose Bourne shell is based on that version won't have the problem. However, for now, you may still want to program defensively....