bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: $() parsing still broken


From: Chet Ramey
Subject: Re: $() parsing still broken
Date: Sat, 19 Sep 2009 13:12:13 -0400
User-agent: Thunderbird 2.0.0.23 (Macintosh/20090812)

Christian Weisgerber wrote:
> Even in the latest bash, 4.0.33, $() parsing is still broken:
> 
> $ bash -c 'echo $(echo \|)'
> bash: -c: line 0: unexpected EOF while looking for matching `)'
> bash: -c: line 1: syntax error: unexpected end of file
> 
> And yes, this is bash built with GNU bison, not Berkeley yacc.

The rest of the information from bashbug would help, since I can't
reproduce it:

local(1)$ ./bash
local(2)$ echo $BASH_VERSION
4.0.33(6)-release
local(2)$ ./bash --version
GNU bash, version 4.0.33(6)-release (i386-apple-darwin9.6.0)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
local(2)$ ./bash -c 'echo $(echo \|)'
|
local(2)$ ./bash ./x3
|
local(2)$ cat x3
./bash -c 'echo $(echo \|)'
local(2)$ ./bash ./x3a
|
local(2)$ cat x3a
echo $(echo \|)


-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]