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

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).