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 D2636138262 for ; Thu, 19 May 2016 20:04:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BAD38141E3; Thu, 19 May 2016 20:04:46 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 CCAA321C054 for ; Thu, 19 May 2016 20:04:45 +0000 (UTC) Received: from localhost (cpc92302-cmbg19-2-0-cust189.5-4.cable.virginm.net [82.1.208.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: aidecoe) by smtp.gentoo.org (Postfix) with ESMTPSA id D767A340B4D; Thu, 19 May 2016 20:04:43 +0000 (UTC) From: Amadeusz =?utf-8?B?xbtvxYJub3dza2k=?= To: Ulrich Mueller Cc: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] [PATCH] eutils.eclass: Add awk wrapper - eawk - edit file in place In-Reply-To: <22334.1909.915341.791759@a1i15.kph.uni-mainz.de> 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> User-Agent: Notmuch/0.22 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-pc-linux-gnu) Date: Thu, 19 May 2016 21:04:28 +0100 Message-ID: <874m9tyfub.fsf@freja.aidecoe.name> 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="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Archives-Salt: 20c63ed7-28d0-44af-96e0-742b55e34694 X-Archives-Hash: 4bd483de0e766b221f2ddef0db63801c --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-eapi-6 > > Note that the ${?} in the code example there is redundant. Why redundant? I imagine we can call it like: if ! nonfatal efoo; then do_something_on_error fi can't we? =2D- Amadeusz =C5=BBo=C5=82nowski --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.1 iQJ8BAEBCgBmBQJXPhxMXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCMzcyRTFENjI5NUM1MzYwQTQwODQyRUZD QkNDODAyM0Y1OUUxNzA0AAoJEMvMgCP1nhcEOGQP/imk/dpJ3RMZWpHABQkcV/Eh v6h7yFo/ZYXoARkw0yxM4JFPDuxHcuMn/optpffFYT4DkXWnhvx42MKvQzJl63dV kYkGbK2uutnlb/rBji/3PclkoasxsFHuEiCYMsAm6Ppfq0+sgjvC23P1c77rv7uu juVIdpQYCilXbnlhPDa05yTLhMu5LhMZHH14ns4qu2SmDo/vfeVKDLOjqgSy4LrG v+/BFZQ0unYIevilqMTj8XFjZVCiRvpljLtQRXhEv+ufyQfMfdBiw6biTyNQKzyO 9B0CHsb4uoGMKJO6UCSAODByCwZNtlZ0M20u6My+64u87rmj1rl1+lOVgWYlW4F/ iUyQsz6b0bdPKnD5+XKOg2HRSSfpwztno9qAQbBroDwQmb0bJ8esaGhdqHv2ovlK ooOlKFM747kLasSkESmZhx0Wxx/b5YEa3JUPitIQxXL7x54mHJGTAoxU2qTUVqBd RXJ0PbtAZxHhXPhtQxSE99jTdN4IyG8wlUl71UhbRMBEXhRFshSE5/tbcujwTR+Q PsM0Dl+iY6tgYlioNDJb4qhlUwwOQ9SamG6nHu2t51s6Fer1i0CG3Uu234T4hrUV Fqflva210pTL8vC08TL1SLYo+nomUEpY5rk0tUzdSEopBB1AIpeOHje9Q2uWEBqr kvbOxoA20XfMnuXAq919 =EJfg -----END PGP SIGNATURE----- --=-=-=--