bash – PIPESTATUS and pipefail

Evaluate the exit code of an executed command is a normal practice in shell scripts, but what happens if you also want that command to pipe in another command? You lose your precious exit code. Bash provides you with the variable array PIPESTATUS, containing the exit codes along all the pipeline. But sometimes you want […]

Continue readingMore Tag
Scroll to top
Click to access the login or register cheese