All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Mabee <rmabee@comcast.net>
To: grub-devel@gnu.org
Subject: Re: Release of 2.00~rc1
Date: Wed, 27 Jun 2012 00:40:08 -0400	[thread overview]
Message-ID: <4FEA8EA8.9000607@comcast.net> (raw)
In-Reply-To: <4FE9227A.3010808@gmail.com>

On 06/25/2012 10:46 PM, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
> On 26.06.2012 04:16, Robert Mabee wrote:
>> REG_NEWLINE causes incorrect results when a filename contains a newline,
>> both because a wild char won't match the newline, and because the generated
>> pattern anchors ^$ can match adjacent to the newline.
> Looks like you misinterpret the flags and it's actually reversed to what
> you say. Did you check that claimeed behaviour actuall occurs?
Yes, though with a different filename.
>         REG_NEWLINE
>                Match-any-character operators don't match a newline.
>
>                A nonmatching list ([^...])  not containing a newline does
> not match a newline.
>
>                Match-beginning-of-line operator (^) matches the empty
> string immediately after a newline, regardless of whether eflags, the
> execution flags of  regexec(),  con‐
>                tains REG_NOTBOL.
Those are the undesirable (in my opinion) behaviors in this case, where 
^ and $
are supplied automatically to make sure the user pattern matches the entire
filename, and everyone knows * matches all files, but newline in a filename
spoils both.



  reply	other threads:[~2012-06-27  4:40 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-23 20:59 Release of 2.00~rc1 Vladimir 'φ-coder/phcoder' Serbinenko
2012-06-23 21:30 ` Aleš Nesrsta
2012-06-23 21:57   ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-06-24  7:29 ` Robert Mabee
2012-06-24 18:30   ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-06-25  9:12     ` REG_EXTENDED (was Re: Release of 2.00~rc1) Vladimir 'φ-coder/phcoder' Serbinenko
2012-06-25 18:23   ` Release of 2.00~rc1 Vladimir 'φ-coder/phcoder' Serbinenko
2012-06-26  2:16     ` Robert Mabee
2012-06-26  2:46       ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-06-27  4:40         ` Robert Mabee [this message]
2012-06-25 14:29 ` David Cantrell
2012-06-26 18:27 ` Bruce Dubbs
2012-06-26 20:03   ` Vladimir 'φ-coder/phcoder' Serbinenko

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=4FEA8EA8.9000607@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.