[tex-live] (Win32) Another problem with space in %COMSPEC%?

T T t34www at googlemail.com
Thu Sep 3 23:44:53 CEST 2009

2009/9/3 Norbert Preining <preining at logic.at>:
> On Do, 03 Sep 2009, Dan Luecking wrote:
>> tlmgr.pl which in turn calls
>>   TeXLive::TLUtils::dir_writable
>> which, in turn tries to execute
>>   system('copy /b ' . $ENV{'COMSPEC'} . ' "' . $fb . '" >nul 2>&1');
>> This seems to fail if there is a space in %COMSPEC%.
> Tomek, didn't we have a discussion about that recently? Is there a
> safe way to fix it, and if yes, can you please commit a fix.

I swapped 'nul' for $ENV{'COMSPEC'} in the above. This will create an
empty file. However, with folder virtualization disabled by
perl.exe.manifest, why don't we perform the write test the same way as
on Unix?



More information about the tex-live mailing list