From: Robert Mabee <rmabee@comcast.net>
To: grub-devel@gnu.org
Subject: Re: [PATCH] '.' causes wildcard expansion
Date: Wed, 20 Jun 2012 04:04:34 -0400 [thread overview]
Message-ID: <4FE18412.30109@comcast.net> (raw)
In-Reply-To: <4FE06E5F.5050204@gmail.com>
On 06/19/2012 08:19 AM, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
> I've fixed these problems AFAICT now. Can you confirm?
I agree that many extraneous regex chars are now properly quoted so no more
functionality is exposed than is intended, now * and ?. I suggest also
quoting
^ and $ just for completeness. I can not explain why @ is quoted; it's
not mentioned
in the documentation for POSIX-compatible regex or in gnulib/regcomp.c.
wildcard_escape in script/execute.c quotes the wild chars and [ , which
is no longer
wild. This can lead to a surprising extra level of quoting, so for
example *'['*
becomes the useless regexp pattern ^.*\\\[.*$
It appears the only remaining use of isregexop is in make_dir, which
removes \
quoting only before regex chars, from path components that weren't wild.
If this quoting was inserted by wildcard_escape then it should be
removed similarly
to wildcard_unescape, which doesn't examine the quoted char.
prev parent reply other threads:[~2012-06-20 8:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-11 6:56 [PATCH] '.' causes wildcard expansion Robert Mabee
2012-06-13 22:42 ` Robert Mabee
2012-06-18 11:03 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-06-19 12:19 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-06-20 8:04 ` Robert Mabee [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FE18412.30109@comcast.net \
--to=rmabee@comcast.net \
--cc=grub-devel@gnu.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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.