3 ms·
Try enabling shellcheck linting in your editor! It would immediately warn about unquoted variable expansions and the like. For the vast majority of "gotchas" sh
by xelxebar 4y ago
Try enabling shellcheck linting in your editor! It would immediately warn about unquoted variable expansions and the like. For the vast majority of "gotchas" shellcheck will prod you in the right direction.
That said, to write good shell scripts requires actually learning the shell paradigm, instead of just trying to write "Python with Shell syntax".