public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/16059] New: wordexp(3) -- A[0]='a b' gives error
@ 2013-10-17 18:54 opengeometry at yahoo dot ca
2013-10-18 15:09 ` [Bug libc/16059] " opengeometry at yahoo dot ca
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: opengeometry at yahoo dot ca @ 2013-10-17 18:54 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=16059
Bug ID: 16059
Summary: wordexp(3) -- A[0]='a b' gives error
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: opengeometry at yahoo dot ca
CC: drepper.fsp at gmail dot com
Hi, I'm not sure if it's bug or just misunderstanding. Given two
similar cases,
wordexp ("one: A[0]='a b' end", &w, 0); --> error=5 (WRDE_SYNTAX)
wordexp ("one: 'A[0]=a b' end", &w, 0); --> ok
the result should be 3 strings,
one:
A[0]=a b
end
just like shell. Yet, I get error for the first case. I think
wordexp() is getting confused about glob [0] which is followed by
<single-quote> and then <space>.
--
William
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libc/16059] wordexp(3) -- A[0]='a b' gives error
2013-10-17 18:54 [Bug libc/16059] New: wordexp(3) -- A[0]='a b' gives error opengeometry at yahoo dot ca
@ 2013-10-18 15:09 ` opengeometry at yahoo dot ca
2013-10-18 15:22 ` neleai at seznam dot cz
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: opengeometry at yahoo dot ca @ 2013-10-18 15:09 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=16059
William Park <opengeometry at yahoo dot ca> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |opengeometry at yahoo dot ca
--- Comment #1 from William Park <opengeometry at yahoo dot ca> ---
Created attachment 7241
--> https://sourceware.org/bugzilla/attachment.cgi?id=7241&action=edit
fix whitespace inside quoted string while globbing
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libc/16059] wordexp(3) -- A[0]='a b' gives error
2013-10-17 18:54 [Bug libc/16059] New: wordexp(3) -- A[0]='a b' gives error opengeometry at yahoo dot ca
2013-10-18 15:09 ` [Bug libc/16059] " opengeometry at yahoo dot ca
@ 2013-10-18 15:22 ` neleai at seznam dot cz
2013-10-24 13:30 ` schwab@linux-m68k.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: neleai at seznam dot cz @ 2013-10-18 15:22 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=16059
Ondrej Bilka <neleai at seznam dot cz> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |neleai at seznam dot cz
--- Comment #2 from Ondrej Bilka <neleai at seznam dot cz> ---
Could you send this also to libc-alpha. You need also add changelog like
following one
2010-10-14 Random Developer <developer@provider.com>
* posix/wordexp.c (wordexp): Fix whitespaces inside quoted string.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libc/16059] wordexp(3) -- A[0]='a b' gives error
2013-10-17 18:54 [Bug libc/16059] New: wordexp(3) -- A[0]='a b' gives error opengeometry at yahoo dot ca
2013-10-18 15:09 ` [Bug libc/16059] " opengeometry at yahoo dot ca
2013-10-18 15:22 ` neleai at seznam dot cz
@ 2013-10-24 13:30 ` schwab@linux-m68k.org
2014-06-13 12:39 ` fweimer at redhat dot com
2015-08-27 22:17 ` [Bug glob/16059] " jsm28 at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: schwab@linux-m68k.org @ 2013-10-24 13:30 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=16059
--- Comment #4 from Andreas Schwab <schwab@linux-m68k.org> ---
There are a lot of problems with quoting in wordexp parsing.
- quoted glob meta characters need to be requoted for glob, but the result must
undergo quote removal if no file was matched
- unterminated quoting needs to be diagnosed
- the check to distinguish $((foo)) from $((foo);(bar)) doesn't handle quoted
parens
- parse_comm doesn't handle backslash quoting
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libc/16059] wordexp(3) -- A[0]='a b' gives error
2013-10-17 18:54 [Bug libc/16059] New: wordexp(3) -- A[0]='a b' gives error opengeometry at yahoo dot ca
` (2 preceding siblings ...)
2013-10-24 13:30 ` schwab@linux-m68k.org
@ 2014-06-13 12:39 ` fweimer at redhat dot com
2015-08-27 22:17 ` [Bug glob/16059] " jsm28 at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: fweimer at redhat dot com @ 2014-06-13 12:39 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=16059
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Flags| |security-
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug glob/16059] wordexp(3) -- A[0]='a b' gives error
2013-10-17 18:54 [Bug libc/16059] New: wordexp(3) -- A[0]='a b' gives error opengeometry at yahoo dot ca
` (3 preceding siblings ...)
2014-06-13 12:39 ` fweimer at redhat dot com
@ 2015-08-27 22:17 ` jsm28 at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2015-08-27 22:17 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=16059
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] 6+ messages in thread
end of thread, other threads:[~2015-08-27 22:17 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-17 18:54 [Bug libc/16059] New: wordexp(3) -- A[0]='a b' gives error opengeometry at yahoo dot ca
2013-10-18 15:09 ` [Bug libc/16059] " opengeometry at yahoo dot ca
2013-10-18 15:22 ` neleai at seznam dot cz
2013-10-24 13:30 ` schwab@linux-m68k.org
2014-06-13 12:39 ` fweimer at redhat dot com
2015-08-27 22:17 ` [Bug glob/16059] " 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).