diff options
author | John Ankarstrom <john@ankarstrom.se> | 2021-07-07 20:15:39 +0200 |
---|---|---|
committer | John Ankarstrom <john@ankarstrom.se> | 2021-07-07 20:15:39 +0200 |
commit | e57e5137040e65dd82474bc4c590c8c23cfce509 (patch) | |
tree | 3e9b8ee408ae54f453ffaa0a1c5f4e17d3cfcdc4 /build.1 | |
parent | 910b33f06a16362f8a41114894d977df928c18fc (diff) | |
download | build-e57e5137040e65dd82474bc4c590c8c23cfce509.tar.gz |
Check status of shell command
Diffstat (limited to 'build.1')
-rw-r--r-- | build.1 | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -76,6 +76,18 @@ in the same shell process. This means that you can keep state across multiple commands. Note that all commands are executed regardless of the exit status of previous commands. +.Pp +.Nm +exits with a positive status if a command failed. +Note that it checks the status +of the entire command sent to the shell, +not the individual command lines. +To emulate the behavior of +.Xr make 1 , +which fails if any individual command line fails, +you can use +.Ql set -e +in your command line. . .Sh EXAMPLES .Pp |