DEV Community

Discussion on: Bash is a terrible as a programming language, but what's the alternative ?

Collapse
 
efpage profile image
Eckehard

Most regular programming languages provide an option to execute shell commands, so, why donΒ΄t you not use any of them to do the things you regularly woud do with a shell script? As long as you do not need an UI or complex interactions, things are not much different from writing scripts.

Collapse
 
jmfayard profile image
Jean-Michel πŸ•΅πŸ»β€β™‚οΈ Fayard

Yes, but with which ones ?
Some programming languages are better at replacing Bash than others

After the discussion I would bet on JavaScript with zx, Python, Go, V

Collapse
 
efpage profile image
Eckehard

Seems a good choice, maybe you should add Rust? I do not think the language matters too much. Just try to use the language that you know best.