2
votes
1answer
346 views

grep segfaults when passed “-r” and “--exclude-dir” and stdin is a pipe

If I pipe data into grep AND pass the "-r" flag (recurse subdirs) AND pass the "--exclude-dir" flag (e.g. to skip ".git" directories), then it segfaults. If any one of these things is missing, then ...