bug in /bin/sh
Chip Salzenberg
chip at ateng.ateng.com
Fri May 26 07:44:05 AEST 1989
According to chris at cetia4.UUCP (Christian Bertin):
>First, I apologized if this is an ancient bug. There is a problem in the
>argument passing when shell functions are used: The expansion of $* turns
>quoted strings into multiple arguments.
> $ mail() /usr/bin/mailx $*
Feature alert! That's the way $* is supposed to work.
What you probably want is:
$ mail() /usr/bin/mailx ${1+"$@"}
--
Chip Salzenberg <chip at ateng.com> or <uunet!ateng!chip>
A T Engineering Me? Speak for my company? Surely you jest!
"It's no good. They're tapping the lines."
More information about the Comp.bugs.sys5
mailing list