bug in /bin/sh

daniel.r.levy danl at cbnewsc.ATT.COM
Fri May 26 09:11:44 AEST 1989


< 			$ 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.



More information about the Comp.bugs.sys5 mailing list