Re: new-style command substitution generates syntax error near ')'
From:
Chet Ramey
Subject:
Re: new-style command substitution generates syntax error near ')'
Date:
Fri, 13 Mar 2009 22:58:00 -0400
User-agent:
Thunderbird 2.0.0.19 (Macintosh/20081209)
esumbar@ualberta.ca wrote:
> Machine Type: amd64-portbld-freebsd7.1
>
> Bash Version: 4.0
> Patch Level: 10
> Release Status: release
>
> Description:
> Bash reports syntax error near unexpected token `)' for
> new-style command substitution syntax, i.e., $(command)
> in interactive and non-interactive shells.
>
> Repeat-By:
> $ abc=$(ls)
> bash: command substitution: line 5: syntax error near unexpected token `)'
> bash: command substitution: line 5: `date)'
This is due to a problem with the BSD yacc. Rebuild the port using
bison.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/