top | item 47044193

(no title)

KerrickStaley | 13 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.

discuss

order

extraduder_ire|13 days ago

Just remember what those commands are, and to type a || or && next to them each time you run one.

'<cmd> || echo$?' is a good option, if you care about the return value.