emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Fix `grep' command to handle filenames starting with '-'.


From: lux
Subject: Re: [PATCH] Fix `grep' command to handle filenames starting with '-'.
Date: Thu, 07 Nov 2024 18:44:34 +0800
User-agent: Evolution 3.54.1-1

On Thu, 2024-11-07 at 11:40 +0100, Rens Oliemans wrote:
> Xi Lu <lx@shellcodes.org> writes:
> 
> > -       (grep (format "grep -rnH -e '%s' *" ',region-string))]
> > +       (grep (format "grep -rnH -e '%s' ./*" ',region-string))]
> 
> This works so my comment might be a bit too bikesheddy, but another method
> would be to
> append the argument `--` after the list of options to ensure that the rest of
> the
> arguments aren't parsed as options; perhaps that's preferred.

Yes, but I haven't tested it on other Unix-like platforms, so I'm not sure if "-
-" will work properly on all of them.










reply via email to

[Prev in Thread] Current Thread [Next in Thread]