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

next in thread | previous in thread | raw e-mail | index | archive | help
"Michael P. Soulier" <msoulier@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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44wsaj5564.fsf>