Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch    |    Fun with MS-DOS batch files    |    42,547 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 42,169 of 42,547    |
|    Andy Burns to Herbert Kleebauer    |
|    Re: Lower case and diff two text files c    |
|    24 Mar 23 11:04:18    |
      XPost: alt.comp.os.windows-10, alt.comp.microsoft.windows       From: usenet@andyburns.uk              Herbert Kleebauer wrote:              > Andy Burns wrote:       >       >> It it actually using undefined CMD behaviour?       >       > Normal behavior, "/" is replaced by "&rem.", so you get:       >       > set v1=39&rem.2023       >       > which is equivalent to the two lines:       >       > set v1=39       > rem.2023              Still somewhat surprised that it works without using       enabledelayedexpansion (or calling cmd.exe /v)              I'd have thought after it parsed the original SET statement, it would       execute it "as was" not executing the &REM from after the substitution       had been done.              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca