|Bash Shell Script and a C Program...How to Port Both to Windows? email@example.com (2003-05-15)|
|Re: Bash Shell Script and a C Program...How to Port Both to Window firstname.lastname@example.org (Lex Spoon) (2003-05-23)|
|Re: Bash Shell Script and a C Program...How to Port Both to Windows? email@example.com (Scott Nicol) (2003-05-24)|
|Re: Bash Shell Script and a C Program...How to Port Both to Windows? firstname.lastname@example.org (Lex Spoon) (2003-05-29)|
|From:||"Scott Nicol" <email@example.com>|
|Date:||24 May 2003 20:27:39 -0400|
|Posted-Date:||24 May 2003 20:27:39 EDT|
"Lex Spoon" <firstname.lastname@example.org> wrote in message
> You can probably ship just bash.exe from Cygwin. Bash.exe is a
> perfect interpreter for your language, so seems best to try and find a
> way to use it.
Shell scripts, except for the most trivial examples, call external
programs. There's likely a whole bunch of stuff you need (ls, grep,
awk, sed, head, ...).
If the script isn't too tricky and if you feel brave, you may be able
to convert the shell script to a DOS batch file. See
http://www.uwasa.fi/~ts/http/http2.html#batch for a large list of
online batch file programming pages. Batch files we a dying breed
before advanced languages like Java came along and made them necessary
again. I can't recommend any one page in particular - I think I'm
like most programmers that get done what is necessary in .bat files
and then leaves well enough alone.
Return to the
Search the comp.compilers archives again.