SyntaxFix
Write A Post
Hire A Developer
Questions
It really depends on how you write your bash scripts. If your /bin/sh is symlinked to bash, when bash is invoked as sh, some features are unavailable.
/bin/sh
sh
If you want bash-specific, non-POSIX features, use #!/bin/bash
#!/bin/bash