Remix.run Logo
greener_grass 5 hours ago

Bash is not a great cross-platform choice. Too many subtle differences.

The best way is a scripting language with locked-down dependency spec inside the script. Weirdly .NET is leading the way here.

goalieca 2 hours ago | parent | next [-]

Stick to posix shell and it will run anywhere and on anything no matter how old.

oguz-ismail2 2 hours ago | parent | prev | next [-]

>Too many subtle differences.

Such as?

hiccuphippo 2 hours ago | parent | next [-]

This entire list: https://www.shellcheck.net/wiki/

oguz-ismail2 40 minutes ago | parent [-]

How is any of that a subtle difference between platforms?

greener_grass an hour ago | parent | prev [-]

The tools you will call from your bash script differ in subtle ways between Linux, macOS, MinGW.

One good example is `uuidgen`

oguz-ismail2 38 minutes ago | parent [-]

>uuidgen

That's neither a standard CLI utility nor a bash builtin.

Imustaskforhelp 5 hours ago | parent | prev [-]

Python with uv seems decent in here too.

kh_hk 4 hours ago | parent [-]

python does EOL releases after 5 years. I guess versions are readily available for downloading and running with uv, but at that point you are on your own.

bash is glue and for me, glue code must survive the passage of time. The moment you use a high-level language for glue code it stops being glue code.