Sign inSign up

akito13/batsh

By akito13

•Updated almost 7 years ago

A language that compiles to GNU Bash and Windows Batch.

Image
0

163

akito13/batsh repository overview

Batsh is a simple programming language that compiles to GNU Bash and Windows Batch. It enables you to write your script once, which then runs on all platforms without any additional dependency.

Both Bash and Batch are messy to read and tricky to write due to historical reasons. You have to spend a lot of time learning either of them and write platform-dependent code for each operating system. I have wasted lots of time in my life struggling with bizarre syntaxes and unreasonable behaviors of them, and do not want to waste any more.

If you happen to be a maintainer of a cross-platform tool which relies on Bash on Linux/Mac and Batch on Windows as “glue code”, and found it painful to “synchronize” between them, you would definitely like to try Batsh.

Explanation: https://discuss.ocaml.org/t/compiling-batsh/4700⁠

Original Project: https://github.com/BYVoid/Batsh⁠

Original Dependency: https://github.com/BYVoid/Dlist⁠

Revived Project: https://github.com/darrenldl/Batsh⁠

Revived Dependency: https://github.com/darrenldl/Dlist⁠

Online Interpreter: https://batsh.org/⁠

Tag summary

Content type

Image

Digest

Size

4.9 MB

Last updated

almost 7 years ago

docker pull akito13/batsh:0.0.7