bug#54174: (MacOS Monterey 12.2.1: zsh): grep "string" * is interpreted as grep -V when directory has a filename "-Vfilename.ext"

2022-02-26 Thread Marja Koivunen
I had a directory with filenames that started with “-“ doing grep on that directory for a “string" did not find anything although “string was on some of the files” grep just kept repeating something … FreeBSD Finally, (with some help) I understood that grep interpreted “-Vfiename” as an option

bug#54174: (MacOS Monterey 12.2.1: zsh): grep "string" * is interpreted as grep -V when directory has a filename "-Vfilename.ext"

2022-02-27 Thread Marja Koivunen
wrong (I did not read the whole manual.) So if the program user interface cannot be changed maybe the manual could tell that filenames that start with “-“ might require some additional quoting Marja * No need to reply * On Feb 26, 2022, at 1:33 PM, Marja Koivunen wrote: I