From: Rens Oliemans <hallo@rensoliemans.nl>
To: Xi Lu <lx@shellcodes.org>, emacs-orgmode@gnu.org
Cc: Xi Lu <lx@shellcodes.org>
Subject: Re: [PATCH] Fix `grep' command to handle filenames starting with '-'.
Date: Thu, 07 Nov 2024 11:40:17 +0100 [thread overview]
Message-ID: <874j4j8gz2.fsf@rensoliemans.nl> (raw)
In-Reply-To: <tencent_6F6A1EEF62E567C2C782CD384966126A0009@qq.com>
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.
next prev parent reply other threads:[~2024-11-07 10:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-07 9:24 [PATCH] Fix `grep' command to handle filenames starting with '-' Xi Lu
2024-11-07 10:40 ` Rens Oliemans [this message]
2024-11-07 10:44 ` lux
2024-11-08 3:46 ` Max Nikulin
2024-11-08 3:56 ` lux
2024-11-09 14:35 ` Ihor Radchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874j4j8gz2.fsf@rensoliemans.nl \
--to=hallo@rensoliemans.nl \
--cc=emacs-orgmode@gnu.org \
--cc=lx@shellcodes.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).