DEV Community

Discussion on: Bash from scratch: learn enough bash to write your own scripts

Collapse
 
ahmedmusallam profile image
Ahmed Musallam

I started this post to talk about shell scripting in general. but I think I think you’re right, its confusing that way. I’ll change the shebang to be bash exclusive. Thank you for the feedback!

Collapse
 
erebos-manannan profile image
Erebos Manannán

Both are definitely valid options, just if you want to write for bash then it's better to avoid ambiguity about it. When writing with support for BSD, Busybox, etc. environments in mind (e.g. inside Alpine Linux), sh is the better option, just comes with some extra baggage.