Article View: comp.bugs.sys5
Article #1133Re: bug in /bin/sh
From: Chip Salzenberg
Date: Thu, 25 May 1989 21:44
Date: Thu, 25 May 1989 21:44
16 lines
987 bytes
987 bytes
According to chris@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@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."
Technical Details
Message-ID:
<1989May25.174406.6046@ateng.ateng.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!ateng!chipReferences:
<883@cetia4.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!ateng!chip From: chip@ateng.ateng.com (Chip Salzenberg) Newsgroups: comp.bugs.sys5 Subject: Re: bug in /bin/sh Keywords: functions, quotes Message-ID: <1989May25.174406.6046@ateng.ateng.com> Date: 25 May 89 21:44:05 GMT References: <883@cetia4.UUCP> Organization: A T Engineering, Tampa, FL Lines: 16