Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: egrep with zsh as /bin/sh - wordsplitting
- X-seq: zsh-users 8372
- From: Stephane Chazelas <Stephane_Chazelas@xxxxxxxx>
- To: Zsh users list <zsh-users@xxxxxxxxxx>
- Subject: Re: egrep with zsh as /bin/sh - wordsplitting
- Date: Fri, 14 Jan 2005 08:43:23 +0000
- In-reply-to: <2005-01-13T17-30-35@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: Zsh users list <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <2005-01-13T17-30-35@xxxxxxxxxxxxxxxxxxxxxxxxx>
On Thu, Jan 13, 2005 at 09:50:18PM +0100, Michael Prokop wrote:
>
> I'm maintainer of a Linux Live-CD with zsh as it's default shell.
> /bin/sh is pointing to /bin/zsh.
>
> I've a problem with the scripts egrep and fgrep.
> That's the original egrep-script:
>
> ,---- [ /bin/egrep - original version ]
> | #!/bin/sh
> | exec grep -E ${1+"$@"}
> `----
[...]
That's a known issue, and the generally provided work-around is:
test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}="$@"'
See info -f autoconf -n 'Shell Substitutions'
That should be
#!/bin/sh -
BTW.
--
Stéphane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author