From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1HPSZu-0005B2-41 for garchives@archives.gentoo.org; Fri, 09 Mar 2007 00:03:22 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l2900uLI002420; Fri, 9 Mar 2007 00:00:56 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l2900tq3002378 for ; Fri, 9 Mar 2007 00:00:55 GMT Received: from onyx.private.gni.com (wall.sjc2.gni.com [69.80.192.42]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id C3A6F64E70; Fri, 9 Mar 2007 00:00:51 +0000 (UTC) Subject: Re: [gentoo-embedded] init.d scripts and bash From: Ned Ludd To: gentoo-embedded@lists.gentoo.org Cc: Roy Marples In-Reply-To: <1173369604.5480.20.camel@localhost> References: <1173369604.5480.20.camel@localhost> Content-Type: text/plain Organization: Gentoo Linux Date: Thu, 08 Mar 2007 16:00:50 -0800 Message-Id: <1173398450.31695.26.camel@onyx.private.gni.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-embedded@gentoo.org Reply-to: gentoo-embedded@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 Content-Transfer-Encoding: 7bit X-Archives-Salt: b91a36b1-d358-4155-9745-a33d58afac87 X-Archives-Hash: ddad6c61551c16dd62874b6447ca18c3 On Thu, 2007-03-08 at 17:00 +0100, Natanael Copa wrote: > Hi, > > Are there anybody more than me that use the gentoo init.d scripts > without using bash? > > Most init.d scripts runs just fine with a small runscript wrapper. A few > needs patching to work, typically replacing: > > [[ expr || expr ]] > > with: > > [[ expr ]] || [[ expr ]] > > But sometimes arrays and such are used (very often its easy to work > around) > > Are there any hope for setting a gentoo policy that says bash specific > things should be avoided if possible in init.d scripts? That is a goal with baselayout-2. I'd be interested if we started a tracker bug for such things. I think policy might be a bit far reaching at this point. But it's for sure a worthwhile goal. -- Ned Ludd Gentoo Linux -- gentoo-embedded@gentoo.org mailing list