by ilikejam · 4y ago · 0 comments
8. '[' and '[[' are both bash builtins.
9/15. If you're using shellcheck, you'll need to quote (almost) all vars anyway.
Yup, nix and guix consistently put their binaries in "very weird places" - unless you want to make users of those tools unhappy (among others!) please use env. The user knows where their shell is more than you do.
'[' is a builtin, '[[' is a keyword. Can use bash's builtin 'type' to check.