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
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