From owner-freebsd-questions@FreeBSD.ORG Fri Mar 13 01:26:17 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 7217E10656CB for ; Fri, 13 Mar 2009 01:26:17 +0000 (UTC) (envelope-from markmcconnell@iinet.com) Received: from smtp2.pacifier.net (smtp2.pacifier.net [64.255.237.172]) by mx1.freebsd.org (Postfix) with ESMTP id 566158FC15 for ; Fri, 13 Mar 2009 01:26:17 +0000 (UTC) (envelope-from markmcconnell@iinet.com) Received: from [192.168.1.14] (unknown [198.145.202.34]) by smtp2.pacifier.net (Postfix) with ESMTP id 977C66A593; Thu, 12 Mar 2009 17:04:27 -0700 (PDT) From: "Mark McConnell" To: freebsd-questions@freebsd.org Date: Thu, 12 Mar 2009 17:04:26 -0700 MIME-Version: 1.0 Message-ID: <49B9409A.29090.10C8FB5@markmcconnell.iinet.com> Priority: normal In-reply-to: <20090312102523.6f5ad248@scorpio> References: <20090312102523.6f5ad248@scorpio> X-mailer: Pegasus Mail for Windows (4.41) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Cc: Subject: Re: Problem with Bash-4 and $(command) syntax X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: markmc@dataabstractsolutions.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Mar 2009 01:26:17 -0000 On 12 Mar 2009 at 10:25, Jerry wrote: {Problem with Bash-4 and $(command) ...}: > > Is this a known problem with Bash-4? I have not been > able to find anything about it on the Bash site. > > Jerry > gesbbb@yahoo.com > I found the same problem, and have reverted to bash3.2 until it's sorted out. Like you, I wasn't able to find discussion of this on the lists I subscribe to - although I'm sure it's going on. Looking through the diffs in /usr/ports/distfiles/bash, the bracketed form of command substitution appears to be a long- standing problem in bash40-xxx. The back-tick `command` form works as it should, but not the Posix-style $(command) form, as of GNU bash, version 4.0.10(1)-release Mark -- -- Mark McConnell markmc@dataabstractsolutions.com Data Abstract Solutions - Support 12209 N.E. Fourth Plain Suite DD, Vancouver WA 98682