I have to modify existing shell scripts and they start with
#!/bin/sh
What reason would someone use that on a system that also supports bash? I am tempted to change it but I want to make sure there's not a reason I don't know of for this.
My current problem is with a string manipulation and using ${mystring:start:length}
would be so easy in bash but not avail in sh.
cmd &> file
which is valid in both sh and bash, but do a completely different thing. – Apr 06 '20 at 15:02