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 1S639e-0004wf-NF for garchives@archives.gentoo.org; Fri, 09 Mar 2012 16:58:59 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 64AAFE0980; Fri, 9 Mar 2012 16:58:35 +0000 (UTC) Received: from mail2.viabit.com (mail2.viabit.com [65.246.80.16]) by pigeon.gentoo.org (Postfix) with ESMTP id 6B72EE07C9 for ; Fri, 9 Mar 2012 16:57:52 +0000 (UTC) Received: from [10.1.1.204] (unknown [65.213.236.244]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail2.viabit.com (Postfix) with ESMTPSA id 08DF3D8DEB for ; Fri, 9 Mar 2012 11:57:50 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=orlitzky.com; s=mail2; t=1331312271; bh=Ek0zvONhpYn2cyHz+/u+bORDhcdzUZFAvuXzOHGy4UA=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=akdMfUfLcp3KzBvpVlMsES0yKbFRkvwKuUTyOsBODcD6rMIMfzIKR9uNcASaDGdOb daz+L95MRLpocvigh6VFib2azm9UTFFMVf2pbzdGI7sAz7yc5huHm6vwFf+XVtNOxB bboLGvb4amzVBe2V2UsqH/jyBXCjcPYd9Tq4zLYQ= Message-ID: <4F5A368D.2020605@orlitzky.com> Date: Fri, 09 Mar 2012 11:57:49 -0500 From: Michael Orlitzky User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20120116 Thunderbird/9.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] RFD: EAPI specification in ebuilds References: <20311.51166.725757.212932@a1i15.kph.uni-mainz.de> <4F57DDB5.3090503@orlitzky.com> <20120308130310.69c3c714@pomiocik.lan> <4F58D6A5.7070804@orlitzky.com> <20120308182844.11201771@pomiocik.lan> <4F58F103.5010503@orlitzky.com> <20120308175345.2c4b72ff@googlemail.com> <4F58FC55.7070005@orlitzky.com> <20120308184820.108fc30c@googlemail.com> <4F592612.6050203@orlitzky.com> <20120309060424.09cdce1e@pomiocik.lan> <4F599692.9050503@orlitzky.com> <20120309172921.281ee5a0@pomiocik.lan> In-Reply-To: <20120309172921.281ee5a0@pomiocik.lan> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 58301e2d-ffbc-4b4a-8f6c-fc13077ff9fd X-Archives-Hash: c13cf34d827d47964d82359c9b5c6128 On 03/09/12 11:29, Micha=C5=82 G=C3=B3rny wrote: >=20 > What if bash starts to parse the script completely and barfs at 'syntax > error' before it starts executing stuff? >=20 It doesn't parse the script completely, it executes line-by-line, so we can bail out early. This returns 1: exit 1 QWE*$)@#$%IT@$KTRGV{PO#J$%$M@#$_)TVI!%K@B)$YJMV$%())@K#@)