bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PIPESTATUS differs from $? for compound command


From: microsuxxor
Subject: Re: PIPESTATUS differs from $? for compound command
Date: Tue, 10 Dec 2024 09:49:04 +0100

a simple command is a pipeline

On Tue, Dec 10, 2024, 9:44 AM Andreas Schwab <schwab@suse.de> wrote:

> On Dez 10 2024, Mike Jonkmans wrote:
>
> > With 'if false... fi | true' there are two pipelines:
> > 1) false
> > 2) (compound command) if | true
>
> There is only one pipeline, consisting of two commands.
>
> --
> Andreas Schwab, SUSE Labs, schwab@suse.de
> GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
> "And now for something completely different."
>
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]