Re: DOS to UNIX shell translator?

dtrg@st-andrews.ac.uk (David Thomas Richard Given)
Sun, 7 Aug 1994 17:48:45 GMT

          From comp.compilers

Related articles
Re: DOS to UNIX shell translator? Stephen.Darlington@durham.ac.uk (Stephen Darlington) (1994-08-05)
Re: DOS to UNIX shell translator? dtrg@st-andrews.ac.uk (1994-08-07)
Re: DOS to UNIX shell translator? ok@cs.rmit.oz.au (1994-08-18)
| List of all articles for this month |

Newsgroups: comp.compilers
From: dtrg@st-andrews.ac.uk (David Thomas Richard Given)
Keywords: translator
Organization: University Of St. Andrews
References: 94-08-060
Date: Sun, 7 Aug 1994 17:48:45 GMT
Status: RO

Stephen Darlington <Stephen.Darlington@durham.ac.uk> wrote:
>I need to translate between UNIX and DOS (and back) shells for my third
>year computing project - so a sh like shell for DOS would not be of use.
>Current opinion (my own and of people who have replied - thanks and sorry
>for not replying by the way) suggest that I should use the Bourne shell.


I think you aren't going to be able to convert sh > .BAT, because sh
scripts are a lot more powerful that .BAT files. For example, how are you
going to convert multi-line ifs, switch statements, and back-quotes into
.BAT files? However, .BAT > sh should be easy enough; the only slight
difficulty may be due to GOTOs. Does sh support goto? (Never use it, so
never wanted to find out :)
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.