TIP: Click on subject to list as thread! ANSI
echo: linux
to: Kenny McCormack
from: Jasen Betts
date: 2018-12-05 06:27:00
subject: Re: DOS Batch to Unix she

On 2018-12-04, Kenny McCormack  wrote:
> In article ,
> J.O. Aho  wrote:
>>On 12/4/18 5:50 PM, Mike Easter wrote:
>>> ttp wrote:
>>>> Convert windows based batch file to linux based shell script.
>>>> https://www.example.com/online-batch-file-shell-script-converter/
>>>>
>>>>
>>> That is an interesting idea.  It seems to me that it would have to be a
>>> very sophisticated program.  I wonder what happens - what the result or
>>> 'error' is - when it is challenged with something that doesn't solve
>>> according to its algo.
>>>
>>> There are a zillion .bat files out there that one could choose to mess
>>> around with it.
>>
>>Most of the bat-files will not be useful to run on a Linux/Unix system.
>
> Yes, I'm too lazy to goto/access the site.  Sue me.
>
> But I'd like to see some discussion and examples here of some inputs and
> outputs from this process.
>
> Natually, I'm as sceptical as anyone about both the efficacy and the
> utility of this conversion process.

It doesn't work. it fails on simple constructs like "if errorlevel"


In dos 3 batch was dragged kicking and screaming into turing
completeness, it took like 50 lines of code to add two numbers.


later versions had arithmetic built in.

--
  When I tried casting out nines I made a hash of it.

--- SoupGate-Win32 v1.05
                                                                           
* Origin: SpaceSST BBS Usenet Fidonet Gateway (255:255/999)

SOURCE: echomail via QWK@dmine.net

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.