4 ms·
Yes, well if a script I wrote has somehow ended up on a machine without bash, then I'd be more worried about other assumptions the script makes.
by jenscow 5y ago
Yes, well if a script I wrote has somehow ended up on a machine without bash, then I'd be more worried about other assumptions the script makes.
- johnchristopher 5y agoThat's missing the point. Some server I know don't have vim. Traefik docker image is running ash and not bash. Tomcat image hasn't vim. Etc. /bin/sh is there. No worry about assumptions. No bashism, no fish, no zsh.
- jenscow 5y agoThat's fine. My scripts tend to run on a single machine.. otherwise, probably the same/similar Linux distro. So for me, if there's not even bash then I've also surely not accounted for other peculiarities on the system.