On Thu, 2024-11-07 at 11:40 +0100, Rens Oliemans wrote: > Xi Lu <l...@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.