[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-grep] bashism in egrep
From: |
Han Boetes |
Subject: |
[bug-grep] bashism in egrep |
Date: |
Sat, 19 Feb 2005 02:18:31 +0100 |
User-agent: |
Mutt/1.5.8i |
Hi,
egrep contains a bashism:
#!/bin/sh
exec grep -E ${1+"$@"}
with zsh as the sh implementation you'll get:
egrep 'blah blah' /dev/null
egrep: no such file or directory: blah
Possibly
#!/bin/sh
exec grep -E "$@"
is a better solution.
# Han
--
_ (.".) _ Join the Army! Travel to exotic, distant
'-'/. .\'-' lands. Meet exciting, unusual people, and
/_ _\ _...._ kill them.
(` o o `)---` '.
jgs /"---"` \
- [bug-grep] bashism in egrep,
Han Boetes <=