[tex-live] file and viewer commands on OS/2 and macos

Zdenek Wagner zdenek.wagner at gmail.com
Mon Jun 9 00:48:42 CEST 2008


2008/6/8 Frank Küster <frank at kuesterei.ch>:
> "Zdenek Wagner" <zdenek.wagner at gmail.com> wrote:
>
>>>  - is it possible to distinguish OS/2, and if not what will it return?
>>>   msdos?
>>>
>> Using the following in perl:
>> use Config;
>> print $Config{'osname'};
>>
>> I get: OS/2
>
> What's the output of
>
> #!/usr/bin/env texlua
>
> print(os.type);
> print(os.name);
>
> (on a system with luatex installed, if you have that)?
>
>>>  - What would be useful commands for removing a file or directory on
>>>   OS/2?
>>>
>> The native command for deleting a file is "del". There is no native
>> command for deleting a directory although some methods in Rexx exist.
>
> But if a directory is empty, del works on it as well, doesn't it?
>
If the directory is empty, you can delete it by rd.

>> If you want to
>> delete a directory from perl, you can use rmtree from File::Path, it
>> works.
>
> It's luatex, not perltex: lua is the language of choice these days ;-/
>
I am not sure whether lua has already been ported to OS/2, at least I
have not tried.

> Regards, Frank
> --
> Frank Küster
> Debian Developer (teTeX/TeXLive)
>



-- 
Zdeněk Wagner
http://hroch486.icpf.cas.cz/wagner/
http://icebearsoft.euweb.cz


More information about the tex-live mailing list