Is it possible to run or convert between Bash and Batch files?
I tried BASH.EXE, but it isn't that good. My Bash scripts won't work for that. It has something to do with the fact that it doesn't convert "if [ "$move" == "1" ]; then" correctly.
I'm just wondering because sometimes when I'm on Linux I use Bash, sometimes when I'm on Windows I use Batch, and I'd like to have a way to go between my codes without booting in the other operating system.
Batch -> Bash / Bash -> Batch?
Moderator: DosItHelp
Re: Batch -> Bash / Bash -> Batch?
°
Certainly not for complex batch scripts, it would have to know every trick which can be used in both languages.
I wanted to do something similar once, converting batch to 4DOS, &failed miserably
Certainly not for complex batch scripts, it would have to know every trick which can be used in both languages.
I wanted to do something similar once, converting batch to 4DOS, &failed miserably
Re: Batch -> Bash / Bash -> Batch?
Why convert when you can run bash scripts within Windows? win-bash This is a very light weight port.
For a full blown Unix environment running within Windows, try one of the systems found here: Shell clones within Windows. I had a great experience with AT&T UWIN on my XP system. Unfortunately I haven't gotten it to work on Vista, though I have seen reports that others have succeeded.
Dave Benham
For a full blown Unix environment running within Windows, try one of the systems found here: Shell clones within Windows. I had a great experience with AT&T UWIN on my XP system. Unfortunately I haven't gotten it to work on Vista, though I have seen reports that others have succeeded.
Dave Benham
Re: Batch -> Bash / Bash -> Batch?
dbenham wrote:Why convert when you can run bash scripts within Windows? win-bash This is a very light weight port.
For a full blown Unix environment running within Windows, try one of the systems found here: Shell clones within Windows. I had a great experience with AT&T UWIN on my XP system. Unfortunately I haven't gotten it to work on Vista, though I have seen reports that others have succeeded.
Dave Benham
BASH.EXE is Win-Bash. Win-Bash doesn't work. It can't even run my basic scripts. :<
Re: Batch -> Bash / Bash -> Batch?
Ahh, sorry, I missed that (obviously).
I heartily recommend UWIN if you can get it to install. It is a true port of the Korn shell that is fully integrated with Windows. I think there is a bash shell available for it is well. If you have XP you should be set. If Vista or beyond, I'm not sure.
Dave
I heartily recommend UWIN if you can get it to install. It is a true port of the Korn shell that is fully integrated with Windows. I think there is a bash shell available for it is well. If you have XP you should be set. If Vista or beyond, I'm not sure.
Dave