|
|
|
|
|
by KerrickStaley
126 days ago
|
|
A fun way to play this game with less downside is to run `set -euo pipefail` in an interactive session. Then, whenever you execute a command that returns a non-zero exit code, your shell will exit immediately. Unfortunately certain commands like `rg` will return non-zero by design when there are no matches, which could be an intentional outcome. |
|
'<cmd> || echo$?' is a good option, if you care about the return value.