4 ms·
Is it a lot of mental effort to keep in mind which commands are zsh compatible only and which are plain sh?
by j7ake 6y ago
Is it a lot of mental effort to keep in mind which commands are zsh compatible only and which are plain sh?
- vbrandl 6y agoI tend to check every script I write using shellcheck[0]. This will detect if a script starts with `#!/usr/bin/env sh` but uses bash or zsh features. Never had a problem an never thought much about it. [0]: https://github.com/koalaman/shellcheck/ https://github.com/koalaman/shellcheck/
- opan 6y agoI don't recall ever running into something that didn't work in plain sh. I have never scripted in zsh. I'm probably missing out on some advanced features, I guess.