Create Linux Bash and Windows batch scripts simultaneously with Batsh
Mixed Doubles

© Lead Image © andreykuzmin, 123RF.com
Batsh kills two birds with one stone: Programs written in this language can be compiled both as Linux Bash scripts and Windows batch files.
Linux users like to use Bash scripts to automate repetitive tasks. In the Windows world, batch (.bat
) files are used in the same way. However, the commands used in Linux and Windows scripts are often significantly different. Those who work in both Linux and Windows environments therefore not only have to create and maintain two separate scripts, they also have to grapple with various cryptic instructions.
However, this situation should end soon. Google employee Carbo Kuo, a Chinese native living in Switzerland, is currently working on a programming language called Batsh, whose code is translated by a compiler into the appropriate Bash or batch script.
Welcome Ritual
The following line in Batsh will suffice to output the popular message Hello world!:
[...]
Buy this article as PDF
(incl. VAT)