From owner-freebsd-questions@FreeBSD.ORG Sat Mar 21 18:59:52 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CCD2F1065676 for ; Sat, 21 Mar 2009 18:59:52 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: from mail4.sea5.speakeasy.net (mail4.sea5.speakeasy.net [69.17.117.6]) by mx1.freebsd.org (Postfix) with ESMTP id A70BB8FC1B for ; Sat, 21 Mar 2009 18:59:52 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: (qmail 11785 invoked from network); 21 Mar 2009 18:33:11 -0000 Received: from april.chuckr.org (HELO april.telenix.org) (chuckr@[66.92.151.30]) (envelope-sender ) by mail4.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 21 Mar 2009 18:33:11 -0000 Message-ID: <49C532E6.3080903@telenix.org> Date: Sat, 21 Mar 2009 14:33:10 -0400 From: Chuck Robey User-Agent: Thunderbird 2.0.0.19 (X11/20090121) MIME-Version: 1.0 To: Lowell Gilbert References: <20090321124859.GA27682@anton.digitaltorque.ca> <20090321142122.GA99623@torus.slightlystrange.org> <44tz5m7sau.fsf@lowell-desk.lan> In-Reply-To: <44tz5m7sau.fsf@lowell-desk.lan> X-Enigmail-Version: 0.95.5 OpenPGP: id=F3DCA0E9; url=http://pgp.mit.edu Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: bash suddenly doesn't like $() syntax X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Mar 2009 18:59:53 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Lowell Gilbert wrote: > "Daniel Bye" 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-----