bug-bash
[Top][All Lists]
Advanced

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

Re: new-style command substitution generates syntax error near ')'


From: Gerard
Subject: Re: new-style command substitution generates syntax error near ')'
Date: Sat, 14 Mar 2009 06:34:41 -0400

On Fri, Mar 13, 2009 at 10:58 PM, Chet Ramey <chet.ramey@case.edu> wrote:
> 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

An updated version of the port has all ready been committed. I tried
it and it works fine. Update your ports tree and it should be there.

-- 
Gerard
gerard@seibercom.net

No trees were injured in the creation of this email, but a large
number of electrons were terribly inconvenienced.




reply via email to

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