Article View: comp.bugs.sys5
Article #1134Re: bug in /bin/sh
From: daniel.r.levy
Date: Thu, 25 May 1989 23:11
Date: Thu, 25 May 1989 23:11
21 lines
1011 bytes
1011 bytes
< $ 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.
Technical Details
Message-ID:
<1011@cbnewsc.ATT.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!att!cbnewsc!danlReferences:
<883@cetia4.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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