| ▲ | duskdozer 6 hours ago | |
You mean shellcheck will detect when single brackets won't be enough? I've also just defaulted to double because I never really looked into it | ||
| ▲ | stabbles 4 hours ago | parent [-] | |
Yeah, if you set the shebang `#!/bin/sh` (which is portable), shellcheck will complain about double brackets. It also helps you do quoting correctly when using single brackets. | ||