Article View: gnu.bash.bug
Article #756Re: Bug report: quoted strings passed to functions
From: David Elliott
Date: Sat, 18 Nov 1989 22:54
Date: Sat, 18 Nov 1989 22:54
21 lines
1318 bytes
1318 bytes
In article <1989Nov13.233322.15607@rpi.edu> night@pawl.rpi.edu (Trip Martin) writes:
>In <1989Nov13.162429.12744@sony.com> dce@icky.Sony.COM (David Elliott) writes:
>> grep() { egrep "$@" ; }
>It doesn't work as expected. When I tried it, egrep waited for input
>from stdin.
Exactly.
Sorry. The problem is that there seems to be another bug in
bash, in which "$@" is treated incorrectly. I apologize for
not testing my example carefully when I posted. This bug was
discovered a couple of days later.
Sadly, without "$@" working correctly, I don't know of a simple
way to do what you want (does bash have aliases?).
--
David Elliott
dce@sony.com | ...!{uunet,mips}!sonyusa!dce
(408)944-4073
"You can lead a robot to water, but you can not make him compute."
Technical Details
Message-ID:
<1989Nov18.225449.6969@sony.com>Path:
arc1-ca.pugleaf.net!utzoo!telly!attcan!uunet!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!apple!mips!sony.com!dceReferences:
<1989Nov13.054213.24296@rpi.edu> <1989Nov13.162429.12744@sony.com> <1989Nov13.233322.15607@rpi.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!uunet!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!apple!mips!sony.com!dce From: dce@sony.com (David Elliott) Newsgroups: gnu.bash.bug Subject: Re: Bug report: quoted strings passed to functions Message-ID: <1989Nov18.225449.6969@sony.com> Date: 18 Nov 89 22:54:49 GMT References: <1989Nov13.054213.24296@rpi.edu> <1989Nov13.162429.12744@sony.com> <1989Nov13.233322.15607@rpi.edu> Reply-To: dce@icky.Sony.COM (David Elliott) Distribution: na Organization: Sony Microsystems Corp. Lines: 21