On 2/27/22 11:31, Marja Koivunen wrote: > Maybe what is possible is to add a line to manual that explains that certain filenames that are OK in modern OS might not work with grep. > > I have used “-" sometimes to keep certain file at the top of directory hierarchy. In this case I was organizing libraries and marked those that I was not using with “-“. Although that practice is tempting, it is probably not a good idea on any platform where you might use shell commands. POSIX says portable file names can't begin with '-'. There is a section of the grep manual that talks about this but perhaps it is not clear enough. I installed the attached patch to try to make it better.