Reputation: 605
I am very new to TCL. I want a converter to convert bash to TCL. Do you know of a converter that will convert a bash script to a TCL script?
Upvotes: 0
Views: 1120
Reputation: 137787
Translating one programming language into another is in general an ultra-difficult task, because establishing equivalence between two programs is mathematically highly challenging. The only exception is when someone's defined the source language by translation into the target (not the case with Tcl and Bash, whichever way you're looking to do translation!) It's even harder to take idiomatic programs in one language and convert into idiomatic programs in another; idioms don't transfer simply.
That said, it's possible to make some progress with translating specific programs from Bash to Tcl as there's a fair overlap in capabilities. But it's not on a basis of mechanical conversion; it's by hand (and mind, of course). If the script is pretty short, an easy way to make some progress is to ask here on SO while showing the script. (If it has passwords in, replace those before showing.)
Upvotes: 4