From owner-freebsd-questions@FreeBSD.ORG Sat Mar 21 14:20:11 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 605911065672 for ; Sat, 21 Mar 2009 14:20:11 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail3.sea5.speakeasy.net (mail3.sea5.speakeasy.net [69.17.117.5]) by mx1.freebsd.org (Postfix) with ESMTP id 3753E8FC13 for ; Sat, 21 Mar 2009 14:20:11 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 9222 invoked from network); 21 Mar 2009 14:20:10 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail3.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 21 Mar 2009 14:20:10 -0000 Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.6]) by be-well.ilk.org (Postfix) with ESMTP id 8ED4D50824 for ; Sat, 21 Mar 2009 10:20:04 -0400 (EDT) Received: by lowell-desk.lan (Postfix, from userid 1147) id 04F421CDBB; Sat, 21 Mar 2009 10:20:03 -0400 (EDT) To: freebsd-questions@freebsd.org References: <20090321124859.GA27682@anton.digitaltorque.ca> From: Lowell Gilbert Date: Sat, 21 Mar 2009 10:20:03 -0400 In-Reply-To: <20090321124859.GA27682@anton.digitaltorque.ca> (Michael P. Soulier's message of "Sat\, 21 Mar 2009 08\:49\:01 -0400") Message-ID: <44wsaj5564.fsf@lowell-desk.lan> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 14:20:11 -0000 "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 http://be-well.ilk.org/~lowell/