Re: [gentoo-dev] New eclass: eapi9-pipestatus.eclass

2024-11-27 Thread Ulrich Müller
> On Wed, 27 Nov 2024, Florian Schmaus wrote: >> ╓ >> ║ Tests the shell's pipe status array, i.e. the exit status of the >> ║ command(s) in the most recently executed foreground pipeline. >> ║ Returns shell true (0) if all elements are zero, or the last >> ║ non-zero element otherwise. If

Re: [gentoo-dev] New eclass: eapi9-pipestatus.eclass

2024-11-27 Thread Michał Górny
On Wed, 2024-11-27 at 11:41 +0100, Florian Schmaus wrote: > I looked forward to use pipestatus() in texlive-modules.eclass [1], but > since the pipe includes a 'grep', which is not uncommon, I can not use > what is currently proposed. Use sed instead. -- Best regards, Michał Górny signature

Re: [gentoo-dev] New eclass: eapi9-pipestatus.eclass

2024-11-27 Thread Florian Schmaus
On 24/11/2024 13.24, Ulrich Müller wrote: This implements a pipestatus command, as discussed in bug 566342 [1] and on IRC. Subject to approval by the council, the command would be added in EAPI 9. Its definition in the Package Manager Specification would be along the lines of: ╓ ║ Tests the

Re: [gentoo-dev] New eclass: eapi9-pipestatus.eclass

2024-11-24 Thread Ulrich Müller
> On Sun, 24 Nov 2024, Michał Górny wrote: >> # @CODE >> # local status >> # foo | bar >> # status=$(pipestatus -v) || die "foo | bar failed, status ${status}" > I suppose you may want to put a verbose warning not to put "local" > on the same line, because people are going to do that as an "o

Re: [gentoo-dev] New eclass: eapi9-pipestatus.eclass

2024-11-24 Thread Michał Górny
On Sun, 2024-11-24 at 13:24 +0100, Ulrich Müller wrote: > # Copyright 2024 Gentoo Authors > # Distributed under the terms of the GNU General Public License v2 > > # @ECLASS: eapi9-pipestatus.eclass > # @MAINTAINER: > # Ulrich Müller > # @AUTHOR: > # Ulrich Müller > # @SUPPORTED_EAPIS: 7 8 > # @B

[gentoo-dev] New eclass: eapi9-pipestatus.eclass

2024-11-24 Thread Ulrich Müller
This implements a pipestatus command, as discussed in bug 566342 [1] and on IRC. Subject to approval by the council, the command would be added in EAPI 9. Its definition in the Package Manager Specification would be along the lines of: ╓ ║ Tests the shell's pipe status array, i.e. the exit st