4 ms·
I have seen several people use #!/bin/sh and write bash code. This is going to break on debian machines when you do ./foo If more people used #!/usr/bin/env ba
by pavanky 11y ago
I have seen several people use #!/bin/sh and write bash code. This is going to break on debian machines when you do ./foo
If more people used #!/usr/bin/env bash, it wouldn't be that big of a deal.
- stephenr 11y agoAnd they would have non portable code. If they wrote posix compatible shell scripts it wouldn't be any big deal because they'd just work.
- marcoperaza 11y agoThere's like five comments from you in this thread and you seem very adamant about people not writing bash scripts. Have you considered that not everyone has the same requirements? Maybe they don't care about targeting systems that don't have bash installed. In that case, they can use the myriad of enhancements that bash offers to improve their productivity and happiness.