Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Mar 2009 10:20:03 -0400
From:      Lowell Gilbert <>
Subject:   Re: bash suddenly doesn't like $() syntax
Message-ID:  <44wsaj5564.fsf@lowell-desk.lan>
In-Reply-To: <> (Michael P. Soulier's message of "Sat\, 21 Mar 2009 08\:49\:01 -0400")
References:  <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
"Michael P. Soulier" <> writes:

> I'm running the shells/bash port on 6.3, and I recently ran a portupgrade. All
> of a sudden when I login, my standard .profile and .bashrc are causing a bunch
> of error messages, like so
> -bash: command substitution: line 39: syntax error near unexpected token `)'
> -bash: command substitution: line 39: `    }")'
> It would see that bash no longer likes the $() command substitution syntax.
> Does that mean that it's defaulting to some sort of posix compatibility mode
> now? 

That syntax *is* in Posix.

Since the update to bash 4.0, the port needs to be built with bison
instead of the system yacc.  The port has been updated to do this; make
sure you have version 1.111 of the port's Makefile.

Lowell Gilbert, embedded/networking software engineer, Boston area

Want to link to this message? Use this URL: <>