M
M
mind32014-02-06 16:12:09
bash
mind3, 2014-02-06 16:12:09

How to do automatic translation from bash to bat?

Hello.
Has anyone seen a translator between languages? Of course, you can rewrite it with your hands, you just don’t want to waste time on something that can be done automatically if there is a technology for translating a script from a bash into a batch file.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
maxaon, 2014-02-06
@mind3

If for yourself, you can look towards CygWin

G
GavriKos, 2014-02-06
@GavriKos

Um... Do all Unix commands already exist in Windows? Even with a different syntax.

S
Sergey, 2014-02-06
@begemot_sun

In general, there is such a technology, it is called LLVM. But the backends for compiling bash-llvm and generating llvm-bat have not yet been invented. Maybe you will be the first? ;)

V
Vlad Zhivotnev, 2014-02-06
@inkvizitor68sl

This is virtually impossible.
First, bat lacks many tower constructs as a class.
Secondly, bash scripts are usually minced meat from called unix utilities (usually text-based, but if you wish and skill, you can also control graphical ones). And they are not in Windows and will not be.
Well, that is, even if someone would have nothing to do and he would write such a converter, then its applicability would be extremely limited.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question