Subj : Re: DOS Batch to Unix shell script conversion To : Kenny McCormack From : Jasen Betts Date : Wed Dec 05 2018 06:27:25 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) .