Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!att!cbnewsc!danl From: danl@cbnewsc.ATT.COM (daniel.r.levy) Newsgroups: comp.bugs.sys5 Subject: Re: bug in /bin/sh Summary: $@ Keywords: functions, quotes Message-ID: <1011@cbnewsc.ATT.COM> Date: 25 May 89 23:11:44 GMT References: <883@cetia4.UUCP> Organization: AT&T Bell Laboratories Lines: 21 < $ mail() /usr/bin/mailx $* < $ mail -s "a b c d e f" chris < < the quoted string has become multiple arguments to 'mailx', so ... < I get < < To: b c d e f chris < Subject: a < < When I [wanted] < < To: chris < Subject: a b c d e f Use "$@" [sic, including the double quotes] instead of $*. $* re-formats the arguments into individual tokens. -- Dan'l Levy UNIX(R) mail: att!ttbcad!levy, att!cbnewsc!danl AT&T Bell Laboratories 5555 West Touhy Avenue Any opinions expressed in the message above are Skokie, Illinois 60077 mine, and not necessarily AT&T's.