Live data from Hacker News

Batsh – A language that compiles to Bash and Windows Batch

batsh.org

1–10 of 130 posts

Re: Batsh – A language that compiles to Bash and Windows Batch

#4
This implementation is not perfect, although it's interesting that it supports Windows. I personally don't care about that, but it brings the idea to create some sugary wrapper around Bash that allows you to use Bash v4 features such as associative arrays in Bash v3, and wrappers that allow functions to return arrays and other typical headaches.

Re: Batsh – A language that compiles to Bash and Windows Batch

#6
post #3

I'm not so sure about the utility of this in my case. I usually end up using python for scripts, with perhaps a one line batch file that runs it with some default arguments for convenience.

Yup, that's all we end up doing, but it would be nice to have something that combines both programming bliss with end product being just one Bash script that runs on every Linux distro.

Re: Batsh – A language that compiles to Bash and Windows Batch

#10
post #5

I would have preferred a bash/powershell solution. Hoping no one is still writing batch files on windows... even if he is still using xp

Agreed. Powershell has almost completely replaced batch scripts, and is actually a fairly pleasant language to work with.
Post reply on HN