help-bash
[Top][All Lists]
Advanced

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

something like PIPESTATUS for x="x$(false)$(true)"


From: Peng Yu
Subject: something like PIPESTATUS for x="x$(false)$(true)"
Date: Thu, 31 Oct 2019 17:57:31 -0500

The following example shows that bash can only get the last status code.

Is it better to haveing sometiing like PIPESTATUS to be able to get
all the status codes? Thanks.

$ x="x$(false)"
$ echo $?
1
$ x="x$(false)$(true)"
$ echo $?
0

-- 
Regards,
Peng



reply via email to

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