2 ms·
Great list. I've encountered almost all of these situations before and it's no fun if your bash script goes berserk. I would add that you should use an explici
by jmiserez 10y ago
Great list. I've encountered almost all of these situations before and it's no fun if your bash script goes berserk.
I would add that you should use an explicit shebang such as #!/bin/bash instead of #!/bin/sh if your script is anything more complicated than a simple list of statements.