Article View: gnu.bash.bug
Article #754Re: Bug report: quoted strings passed to functions
From: Trip Martin
Date: Sat, 18 Nov 1989 13:49
Date: Sat, 18 Nov 1989 13:49
21 lines
1317 bytes
1317 bytes
In <1989Nov13.162429.12744@sony.com> dce@icky.Sony.COM (David Elliott) writes:
>The bug is in the use of $*, not bash. This is a common problem, caused
>by a flaw in the design of the original sh.
>
>Change that to
>
> grep() { egrep "$@" ; }
>
>and it will work as expected.
It doesn't work as expected. When I tried it, egrep waited for input
from stdin.
--
Trip Martin KA2LIV night@pawl.rpi.edu
Finite state machinist night@uruguay.acm.rpi.edu
--
--russ (nelson@clutx [.bitnet | .clarkson.edu])
Live up to the light thou hast, and more will be granted thee.
A recession now appears more than 2 years away -- John D. Mathon, 4 Oct 1989.
I think killing is value-neutral in and of itself. -- Gary Strand, 8 Nov 1989.
Technical Details
Message-ID:
<1989Nov13.233322.15607@rpi.edu>Path:
arc1-ca.pugleaf.net!utzoo!telly!lethe!torsqnt!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!image.soe.clarkson.edu!nelsonReferences:
<1989Nov13.054213.24296@rpi.edu> <1989Nov13.162429.12744@sony.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!lethe!torsqnt!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!image.soe.clarkson.edu!nelson From: night@pawl.rpi.edu (Trip Martin) Newsgroups: gnu.bash.bug Subject: Re: Bug report: quoted strings passed to functions Message-ID: <1989Nov13.233322.15607@rpi.edu> Date: 18 Nov 89 13:49:15 GMT References: <1989Nov13.054213.24296@rpi.edu> <1989Nov13.162429.12744@sony.com> Sender: nelson@sun.soe.clarkson.edu (Russ Nelson) Distribution: na Organization: Rensselaer Polytechnic Institute, Troy NY Lines: 16