[tex-live] texdoc in luatex

Reinhard Kotucha reinhard.kotucha at web.de
Wed Jun 27 20:46:08 CEST 2007


Frank Küster writes:

 > if os.execute('nothere 2>/dev/null') / 256 == 127 then
 >    print("does not exist")
 > end

/dev/null works on UNIX, on Windows it's nul (and does not appear in
the filesystem).  However, another nice solution would be to walk
through the path (os.getenv("PATH")).  With other words, write a
function which does the same as the UNIX which command.

Note that paths are separated by ";" on Windows instead of ":".

Regards,
  Reinhard

-- 
----------------------------------------------------------------------------
Reinhard Kotucha			              Phone: +49-511-4592165
Marschnerstr. 25
D-30167 Hannover	                      mailto:reinhard.kotucha at web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------



More information about the tex-live mailing list