This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/16059] wordexp(3) -- A[0]='a b' gives error
- From: "opengeometry at yahoo dot ca" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 18 Oct 2013 16:41:33 +0000
- Subject: [Bug libc/16059] wordexp(3) -- A[0]='a b' gives error
- Auto-submitted: auto-generated
- References: <bug-16059-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=16059
William Park <opengeometry at yahoo dot ca> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #7241|0 |1
is obsolete| |
--- Comment #3 from William Park <opengeometry at yahoo dot ca> ---
Created attachment 7242
--> https://sourceware.org/bugzilla/attachment.cgi?id=7242&action=edit
Don't split on whitespace inside quoted string in glob pattern
wordexp(3) stops on whitespace when scanning for glob pattern, even if it
occurs inside quoted string (single or double). So, this patch suppresses
splitting on whitespaces when inside quote for glob pattern.
PS. Perhaps we should add WRDE_NOGLOB flag to prevent globbing, just like
WRDE_NOCMD for command substitution.
--
You are receiving this mail because:
You are on the CC list for the bug.