From: Junio C Hamano Date: Thu, 29 Mar 2007 23:06:03 GMT Subject: Re: [PATCH] git-quiltimport /bin/sh-ism fix Message-ID: <7vr6r71wh0.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <20070329213820.GY24561@craic.sysops.org> Francis Daly writes: > Bryan Wu reported > /usr/local/bin/git-quiltimport: 114: Syntax error: Missing '))' > > Most bourne-ish shells I have here accept > x=$((echo x)|cat) > but all bourne-ish shells I have here accept > x=$( (echo x)|cat) > because $(( might mean arithmetic expansion. Well spotted, thanks. Sheesh, this is even warned in POSIX sh manpage.