Path: 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 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 or A T Engineering Me? Speak for my company? Surely you jest! "It's no good. They're tapping the lines."