Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Mar 2009 14:33:10 -0400
From:      Chuck Robey <chuckr@telenix.org>
To:        Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: bash suddenly doesn't like $() syntax
Message-ID:  <49C532E6.3080903@telenix.org>
In-Reply-To: <44tz5m7sau.fsf@lowell-desk.lan>
References:  <20090321124859.GA27682@anton.digitaltorque.ca>	<20090321142122.GA99623@torus.slightlystrange.org> <44tz5m7sau.fsf@lowell-desk.lan>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Lowell Gilbert wrote:
> "Daniel Bye" <danielby@slightlystrange.org> writes:
> 
>> On Sat, Mar 21, 2009 at 08:49:01AM -0400, Michael P. Soulier wrote:
>>> Hello,
>>>
>>> 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? 
>> It's a bug in bash 4. It was discussed here a few days ago. I would
>> deinstall v.4 and install shells/bash3 until the bug's fixed.
> 
> Which happened a week ago.
> 

I've had stuff like this happen to me, once in a while.  it's NEVER a fact of
bash really suddenly losing something so major.  What you have to is to look at
previous parts of your code, for things like unclosed parens, unclosed quotes,
things like that.  The errors aren't overly helpful, but if you look at previous
lines, you'll find it there, believe me.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknFMuYACgkQz62J6PPcoOnBjQCeLF31QAwW+hcDfRltl/HBijLz
2DQAnR3riA3EvqU4PDekzdXRQMEfqJH8
=QbQt
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49C532E6.3080903>