bug-bash
[Top][All Lists]
Advanced

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

Re: how does bash parse back-ticks, anyway?


From: Chet Ramey
Subject: Re: how does bash parse back-ticks, anyway?
Date: Fri, 20 Apr 2007 12:31:15 -0400
User-agent: Thunderbird 2.0.0.0 (Macintosh/20070326)

Sven Mascheck wrote:

>> |     echo `                         echo $(
>> |     cat <<\eof                     cat <<\eof
>> |     a here-doc with `              a here-doc with )
>> |     eof                            eof
>> |     `                              )
>> |
>> |     echo `                         echo $(
>> |     echo abc # a comment with `    echo abc # a comment with )
>> |     `                              )
> 
> BTW,
> 
> My bash-3.2.15(1)/libc2.3.6/i686-pc-linux-gnu-2.6.13 (like previous
> releases) fails on the first $() example.  It also fails if the
> here-doc contains a single, double or back quote instead of the ).
> 
> "case x in x)" in $() is also not accepted; this is to be worked
> around with "case x in (x)" (POSIX is stricter, though).

These will be fixed in the next version of bash.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                       Live Strong.  No day but today.
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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