Path: 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 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."