public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/17401] New: globbing not consistent for unterminated `[' match
@ 2014-09-16 23:44 33user at gmail dot com
2015-08-27 22:24 ` [Bug glob/17401] " jsm28 at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: 33user at gmail dot com @ 2014-09-16 23:44 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=17401
Bug ID: 17401
Summary: globbing not consistent for unterminated `[' match
Product: glibc
Version: 2.19
Status: NEW
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: 33user at gmail dot com
CC: drepper.fsp at gmail dot com
for example: the pattern "[[" does not match "[[", but the pattern "[z" matches
"[z".
Anotehr example: the pattern "[z[" does not match "[z[" but "[zw" matche "[zw".
the key is, that we tentatively interpret the starting [ as a bracket
match...and then if we find a match from one of the characters after the
opening bracket, we conclude (too early?) that this is a bracket match, and
therefore, when no terminating ] was found, we give up..
whereas, where we still didn't find a match, and we continue to scan the
pattren and reach the terminating null byte, we retract and interpret the whole
pattern as a normal pattern (i.e. not a bracket)..and therefore [[ for exmaple
matches [[ and [zw matches [zw...
again, this is a verbose "interpretation" for the source code...how it decides
where when to retract or not...but it still looks buggy
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug glob/17401] globbing not consistent for unterminated `[' match
2014-09-16 23:44 [Bug libc/17401] New: globbing not consistent for unterminated `[' match 33user at gmail dot com
@ 2015-08-27 22:24 ` jsm28 at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2015-08-27 22:24 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=17401
Joseph Myers <jsm28 at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|libc |glob
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-08-27 22:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-16 23:44 [Bug libc/17401] New: globbing not consistent for unterminated `[' match 33user at gmail dot com
2015-08-27 22:24 ` [Bug glob/17401] " jsm28 at gcc dot gnu.org
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).