From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Icy9t-0004gI-7d for garchives@archives.gentoo.org; Wed, 03 Oct 2007 06:56:37 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.1/8.14.0) with SMTP id l936karS009724; Wed, 3 Oct 2007 06:46:36 GMT Received: from mail.marples.name (rsm.demon.co.uk [80.177.111.50]) by robin.gentoo.org (8.14.1/8.14.0) with ESMTP id l936iccN007320 for ; Wed, 3 Oct 2007 06:44:38 GMT Received: from [10.73.1.30] (uberpc.marples.name [10.73.1.30]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mail.marples.name (Postfix) with ESMTP id 87988190038 for ; Wed, 3 Oct 2007 07:40:25 +0100 (BST) Subject: Re: [gentoo-dev] Re: RFC: sh versionator.eclass From: Roy Marples To: gentoo-dev@lists.gentoo.org In-Reply-To: References: <200710012259.40589.uberlord@gentoo.org> <1191334716.2189.21.camel@uberlaptop.development.ltl> <1191335103.2189.22.camel@uberlaptop.development.ltl> <200710021830.26584.george@gentoo.org> <1191343930.2189.28.camel@uberlaptop.development.ltl> <1191354262.22700.6.camel@uberpc.marples.name> Content-Type: text/plain Organization: Gentoo Date: Wed, 03 Oct 2007 07:44:31 +0100 Message-Id: <1191393871.2556.8.camel@uberpc.marples.name> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 Content-Transfer-Encoding: 7bit X-Archives-Salt: 86357677-acf4-4e63-9cd3-fdba8b310e25 X-Archives-Hash: 91401d85963fe7a93d097bb02eddfdd5 On Tue, 2007-10-02 at 19:29 -0600, Ryan Hill wrote: > Steve Long wrote: > > IMO the real reason you have such an issue with quoting is the redundant > > braces which are Gentoo house style; too many newbie scripters think that > > cd ${S} is safe when it should be cd "${S}" or more simply cd "$S". I don't > > buy the legibility argument since most people use syntax highlighting. It > > just sets the parser up for a non-event (yes I am *that* fussy about > > cycles.) My suspicion is that it came from echo "${RD}message$NO" > > Or because the unbraced case looks like ass. You also need braces for ${#FOO} and other such parameter expansion. Thanks Roy -- gentoo-dev@gentoo.org mailing list