1688 shaares
869 private links
869 private links
7 results
tagged
bash
A clever albeit useless bash trick.
Bash tip: put cleanup code in a function called finish
and register it with trap finish EXIT
.
Tips on writing bash scripts that can be run repeatedly.
The author advocates the syntax my_func() ( body ... )
over my_func() { body ... }
syntax for its additional scoping benefits. I never knew bash function can be defined this way, and it's certainly a great read.