Remix.run Logo
gaigalas 8 hours ago

They are the same, kinda! ash and dash are from the Almquist family.

https://en.wikipedia.org/wiki/Almquist_shell

It's just poetic license.

croemer 8 hours ago | parent [-]

They are not the same. For example, `[[` apparently works on Alpine's ash but not on Debian's dash. BusyBox ash has some bash compatibility options enabled in Alpine.

It's ironic that a post about shell differences glosses over this. Maybe not surprising that slop is sloppy.

gaigalas 7 hours ago | parent [-]

The post is not about shell differences, there's too many of them. It's about portability.

I want users to test instead of rote memorizing. And I'm giving them tools:

    docker run --rm alganet/shell-versions:all -c 'PATH=; [[ 1 == 1 ]] || echo fail'
Don't trust any blogger, use science.