This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/16059] wordexp(3) -- A[0]='a b' gives error


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]