On 15 September 2015 at 18:15, Vincent Belaïche <vincent.belai...@gmail.com> wrote: > No, these lines are bogous because > > $EGREP -iv 'cygwin|mingw|djgpp' > > will always fail. As a result path_sep is always set to `:'. > > ORing is done with \| no | for egrep, | is used by grep. See info nodes > `(grep) Fundamental Structure' for grep, and `(grep) Basic vs Extended'.
I believe you have it completely back-to-front: 3.6 Basic vs Extended Regular Expressions ========================================= In basic regular expressions the meta-characters `?', `+', `{', `|', `(', and `)' lose their special meaning; instead use the backslashed versions `\?', `\+', `\{', `\|', `\(', and `\)'. egrep uses the extended versions, grep the basic version.