|
From: | Koichi Murase |
Subject: | Re: Not to set PIPESTATUS unless necessary |
Date: | Thu, 9 May 2024 12:16:42 +0900 |
It's not as clean as you expect, but for example, you may define pipesaved() { eval "$1 pipesaved=(\"\${PIPESTATUS[@]}\")"; } and use it as pipesaved 'true | true' false echo "${pipesaved[@]}" -- Koichi
[Prev in Thread] | Current Thread | [Next in Thread] |