From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13408 invoked by alias); 17 Oct 2013 18:54:00 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 13335 invoked by uid 48); 17 Oct 2013 18:53:56 -0000 From: "opengeometry at yahoo dot ca" To: glibc-bugs@sourceware.org Subject: [Bug libc/16059] New: wordexp(3) -- A[0]='a b' gives error Date: Thu, 17 Oct 2013 18:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: opengeometry at yahoo dot ca X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-10/txt/msg00208.txt.bz2 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 and then . -- William -- You are receiving this mail because: You are on the CC list for the bug.