hari
hari

Reputation: 9733

shell script to c converter

Does anyone know of any tool which can convert shell script '.sh' into a C file '.c' ?

Upvotes: 1

Views: 5539

Answers (2)

ghostdog74
ghostdog74

Reputation: 342363

you can try shc. Its not a compiler, but it does generate .c files during encoding/encrypting.

Otherwise, do it by hand. Learn to code in C and shell, then translate them yourself. that's the best way to do it.

Upvotes: 1

JSBձոգչ
JSBձոգչ

Reputation: 41378

I doubt that any such tool exists. C and shell files are extremely different languages with completely different purposes, and there is no way to automatically convert one to the other.

Upvotes: 1

Related Questions