bash suddenly doesn't like $() syntax

Lowell Gilbert freebsd-questions-local at be-well.ilk.org
Sat Mar 21 07:20:11 PDT 2009


"Michael P. Soulier" <msoulier at digitaltorque.ca> 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
		http://be-well.ilk.org/~lowell/


More information about the freebsd-questions mailing list