bug#43782: in egrep (grep 3.0), the order of include & exclude is surprisingly significant

2020-10-03 Thread John Ruckstuhl
In egrep (grep 3.0), the order of options (multiple --include and --exclude), is surprisingly significant. I was puzzled by 5 extra output lines in my first egrep, so I did another egrep, with the --include moved up front. Known bug? Yes, I realize that the include by itself would have been suffic

bug#43782: in egrep (grep 3.0), the order of include & exclude is surprisingly significant

2020-10-05 Thread John Ruckstuhl
> On 10/3/20 12:00 PM, John Ruckstuhl wrote: > > In egrep (grep 3.0), the order of options (multiple --include and > > --exclude), is surprisingly significant. > > I was puzzled by 5 extra output lines in my first egrep, so I did > > another egrep, with the --include

bug#43782: in egrep (grep 3.0), the order of include & exclude is surprisingly significant

2020-10-05 Thread John Ruckstuhl
uot; \( -true \) \ > -o \ > "$INCFIRST" \( ! -name "*.bak" -name "*.py" \) \ > \) \ > -o \ > \( ! -name "*.bak" -name "*.py" \) \ > \) | > while read F; do egrep -i -n -l "$PA