[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] Seemingly malformed but sane looking Bashism
From: |
Chet Ramey |
Subject: |
Re: [Help-bash] Seemingly malformed but sane looking Bashism |
Date: |
Wed, 03 Jun 2015 10:40:11 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 |
On 6/2/15 7:30 PM, Rhys Ulerich wrote:
> Bash says...
>
> $ echo ${foo:-$(echo a{b,c})}
> bash: syntax error near unexpected token `)'
> $ echo $BASH_VERSION
> 4.3.30(1)-release
That's a bug, and one that has been around for a very long time (I stopped
looking when I hit bash-2.05b). I will fix it for the next release.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU address@hidden http://cnswww.cns.cwru.edu/~chet/