GNU bash: Difference between revisions
Jump to navigation
Jump to search
-n string |
No edit summary |
||
| Line 1: | Line 1: | ||
== Safe bash == | |||
{| class="wikitable" | |||
!Command | |||
!Comments | |||
|- | |||
|set -o pipefail | |||
|returns error if the pipe fails | |||
|- | |||
|set -e | |||
|exit on the first program fail | |||
|} | |||
== test or [ <ref>http://tldp.org/LDP/abs/html/fto.html</ref><ref>http://tldp.org/LDP/abs/html/comparison-ops.html</ref> == | == test or [ <ref>http://tldp.org/LDP/abs/html/fto.html</ref><ref>http://tldp.org/LDP/abs/html/comparison-ops.html</ref> == | ||
{| class="wikitable" | {| class="wikitable" | ||