[EXT] Location exe installer (Was: Phil Taylor Re: pretest 2021 begin)
Philip Taylor
P.Taylor at Rhul.Ac.Uk
Sat Mar 6 16:19:55 CET 2021
Philip Taylor wrote:
With the greatest respect, Siep, "sense" would indicate exactly the opposite — one would expect an executable image to honour parameters , while equally expecting a batch file to ignore them.
But it turns out that things are even more complex. Let there be, in a given directory, "install-tl-windows.exe", "install-tl-windows.bat", & "install-tl-windows.cmd". Then what should a user expect if he or she types :
* install-tl-windows -select-repository
The answer, it transpires, depends on the current value of his/her "PATHEXT" environment variable. Mine is set to :
* PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
so in my case, "install-tl-windows -select-repository" selects the executable image and the "-select-repository" qualifier is ignored. Another user might have (for example) :
* PATHEXT=.BAT;.CMD;.COM;.EXE;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
and so if he/she were to type :
* install-tl-windows -select-repository
his/her "-select-repository" qualifier would be honoured and he/she would be offered the choice of installing from a local repository. Given the enormous uncertainty as to the actual effect of
* install-tl-windows -select-repository
in any given situation, I now believe more strongly than ever that having "install-tl-windows.exe" & "install-tl-windows.bat" in the same directory is sheer folly.
** Phil.
--
Philip Taylor
This email, its contents and any attachments are intended solely for the addressee and may contain confidential information. In certain circumstances, it may also be subject to legal privilege. Any unauthorised use, disclosure, or copying is not permitted. If you have received this email in error, please notify us and immediately and permanently delete it. Any views or opinions expressed in personal emails are solely those of the author and do not necessarily represent those of Royal Holloway, University of London. It is your responsibility to ensure that this email and any attachments are virus free.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tex-live/attachments/20210306/cebbeba2/attachment-0001.html>
More information about the tex-live
mailing list.