From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id BCD7E138262 for ; Fri, 20 May 2016 09:31:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7232614211; Fri, 20 May 2016 09:31:37 +0000 (UTC) Received: from a1www.kph.uni-mainz.de (a1www.kph.uni-mainz.de [134.93.134.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 42ED8E07DD for ; Fri, 20 May 2016 09:31:35 +0000 (UTC) Received: from a1i15.kph.uni-mainz.de (a1i15.kph.uni-mainz.de [134.93.134.92]) by a1www.kph.uni-mainz.de (8.14.9/8.14.7) with ESMTP id u4K9VTKY031098; Fri, 20 May 2016 11:31:29 +0200 Received: from a1i15.kph.uni-mainz.de (localhost [127.0.0.1]) by a1i15.kph.uni-mainz.de (8.14.8/8.14.2) with ESMTP id u4K9VSqd016280; Fri, 20 May 2016 11:31:28 +0200 Received: (from ulm@localhost) by a1i15.kph.uni-mainz.de (8.14.8/8.14.8/Submit) id u4K9VSO7016275; Fri, 20 May 2016 11:31:28 +0200 Message-ID: <22334.55664.6694.129691@a1i15.kph.uni-mainz.de> Date: Fri, 20 May 2016 11:31:28 +0200 To: Amadeusz =?iso-8859-2?Q?=AFo=B3nowski?= Cc: Ulrich Mueller , gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] [PATCH] eutils.eclass: Add awk wrapper - eawk - edit file in place In-Reply-To: <874m9tyfub.fsf@freja.aidecoe.name> References: <1463606702-16578-1-git-send-email-aidecoe@gentoo.org> <573CEC74.9000708@gentoo.org> <87d1ojx9j2.fsf@freja.aidecoe.name> <22333.35065.517761.668988@a1i15.kph.uni-mainz.de> <878tz6x7f5.fsf@freja.aidecoe.name> <1463681605.24640.14.camel@gentoo.org> <22334.1909.915341.791759@a1i15.kph.uni-mainz.de> <874m9tyfub.fsf@freja.aidecoe.name> X-Mailer: VM 8.2.0b under 24.3.1 (x86_64-pc-linux-gnu) From: Ulrich Mueller 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 Content-Type: multipart/signed; boundary="pgp+signed+bxiQtc5KkzTlvE6"; micalg=pgp-sha256; protocol="application/pgp-signature" X-Archives-Salt: c3fe2f45-2d79-448e-849a-98afcab58058 X-Archives-Hash: 7fe7560ccf4f59d636373328116e7f58 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --pgp+signed+bxiQtc5KkzTlvE6 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: quoted-printable >>>>> On Thu, 19 May 2016, Amadeusz =AFo=B3nowski wrote: > Ulrich Mueller writes: >> Yes, of course. "|| die -n || return" if you want the function to >> return at that point, if it was called under nonfatal. >> >>> https://blogs.gentoo.org/mgorny/2015/11/13/the-ultimate-guide-to-ea= pi-6 >> >> Note that the ${=3F} in the code example there is redundant. > Why redundant=3F I imagine we can call it like: > if ! nonfatal efoo; then > do=5Fsomething=5Fon=5Ferror > fi > can't we=3F The status of the last command will be returned in any case, so there is no difference between "|| return" and "|| return $=3F". Ulrich --pgp+signed+bxiQtc5KkzTlvE6 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQEcBAEBCAAGBQJXPtllAAoJEMMJBoUcYcJzJBIH/34syH/UWi08x9TX9ih3iP5B UEf7yBjcMO0Ut9qT+4yNrEmE56inSdg+vF8XM88L3PU1yGOQVTEodG703kQQpVEQ Ce0oviGH29IBKcBp0U0UQRB7juomXsIuLq9dOoBVujYMnNdfWL0kCIuavNfrTwhF VUNbkaZrHPyvEJ3c37QC/y9d1tuI306YV/XTo5tW7tH3hVoIAeTwL9Ckn0M3Wlb9 /KjDex17lPY9nCB++lpqeliM2+Zh7l9xke//NTSzNwb+iXpQ/gVZcUl/P6V7WXip bST/fqViz2aNIDefSmeaPMlc/xWA16FH6yLtsS1V5fe2Wie4eTlOiVkRIJce6Xk= =+hCR -----END PGP SIGNATURE----- --pgp+signed+bxiQtc5KkzTlvE6--