Batsh – A language that compiles to Bash and Windows Batch
1–10 of 130 posts
Re: Batsh – A language that compiles to Bash and Windows Batch
#2Great name
Re: Batsh – A language that compiles to Bash and Windows Batch
#3I'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.
Re: Batsh – A language that compiles to Bash and Windows Batch
#4This 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
#5I would have preferred a bash/powershell solution. Hoping no one is still writing batch files on windows... even if he is still using xp
Re: Batsh – A language that compiles to Bash and Windows Batch
#6I'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
#7[deleted]
Re: Batsh – A language that compiles to Bash and Windows Batch
#8So I like the idea of a cleaner higher level version of BASH that still works like BASH but doesn't have the baggage of it's evolution.
Key feature has to be output that is no less readable than the average bash script. Which it seems to be.
Re: Batsh – A language that compiles to Bash and Windows Batch
#9I can't think of a case where seamlessly having two different targets like this has worked - particularly if there's pressure to really support all of the features of both.
Re: Batsh – A language that compiles to Bash and Windows Batch
#10I 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.