From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1REMKQ-0001bG-1z for garchives@archives.gentoo.org; Thu, 13 Oct 2011 14:32:10 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D4A1021C09C; Thu, 13 Oct 2011 14:31:57 +0000 (UTC) Received: from mail-ey0-f181.google.com (mail-ey0-f181.google.com [209.85.215.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 1CCD921C04D for ; Thu, 13 Oct 2011 14:31:02 +0000 (UTC) Received: by eyx24 with SMTP id 24so71044eyx.40 for ; Thu, 13 Oct 2011 07:31:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:organization :x-mailer:mime-version:content-type:content-transfer-encoding; bh=/7kOPY8on5o1woeTr3YOboloJ1TxAIpks8lCaGtKmoc=; b=QBmalNofcedgDfpWudczKlnfxXnnPYYL0/mHgZrtcd5iCc+ri8kkISd7mbDKYLdfG5 Lv2JT7PZ4o36PRNP5Gv06IWEKryBpf5x2Y62+t/1YlAtfBVYiCHt8jj3EkJ17oAXw1O/ tT60Td43Qt2UzNre/Hl+7owuTRkPuznPIQdUQ= Received: by 10.213.7.219 with SMTP id e27mr15038ebe.3.1318516262160; Thu, 13 Oct 2011 07:31:02 -0700 (PDT) Received: from rohan.example.com ([196.215.144.38]) by mx.google.com with ESMTPS id w58sm90356eeb.4.2011.10.13.07.30.59 (version=SSLv3 cipher=OTHER); Thu, 13 Oct 2011 07:31:00 -0700 (PDT) Date: Thu, 13 Oct 2011 16:30:34 +0200 From: Alan McKinnon To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] "/usr/bin/[" and coreutils Message-ID: <20111013163034.78a57a1f@rohan.example.com> In-Reply-To: References: <1318397707.15637.3.camel@moriah> <20111012184927.44ed070b@toxic.dbnet> <20111013155058.52e870c3@rohan.example.com> Organization: Internet Solutions X-Mailer: Claws Mail 3.7.8 (GTK+ 2.24.4; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: X-Archives-Hash: 903cbfade69269e7ea1a259dcebc3778 On Thu, 13 Oct 2011 09:59:21 -0400 Michael Mol wrote: > > The binaries are usually POSIX-compliant, whereas the builtins may > > include extra bashisms (which tend to break apps expecting just > > the basic POSIX behaviour) > > I haven't encountered POSIX-dependent apps breaking on bash, but I > have encountered the reverse. My most annoying experience was when I > tried building cinelerra on Debian a few years back. Cinelerra's > script started with #!/bin/sh, but depended on bashisms--and I was > running dash. So you've also run into clueless devs and maintainers who know almost nothing about shells? Your example is an extreme one :-), but it's common enough to find bashisms in scripts with an sh shebang -- Alan McKinnnon alan.mckinnon@gmail.com