2 ms·
I'm always finding another bash magic variable. '$?' is 'exit code of last command'. Last week I found '$-', which tells you which flags are currently set (set
by vacri 12y ago
I'm always finding another bash magic variable. '$?' is 'exit code of last command'. Last week I found '$-', which tells you which flags are currently set (set -x, set -e type of thing).
- FreeFull 12y agoThey are all listed in the man page, thankfully.