[dev-context] context program, mtxrun question?

Hans Hagen pragma at wxs.nl
Fri May 23 18:06:16 CEST 2008


Arthur Reutenauer wrote:
>> few? afaik all windows and linux systems -)
> 
>   No :-)  I have to insist like one year ago, *no* Linux machine I have
> an account on does set TMP or TEMP (using various distributions).  Maybe
> that's a shell problem, I don't know, but on any case you can't rely on it.

weird because what then is the purpose of that variable (ok, it may be 
that progs then put temp stuff all over the place which eventually will 
force you to buy an new machine so maybe some hidden interests)

>> anyhow, taco and i decided now to default as follows: if CACHEPATH is 
>> not set:
>>
>>          cachepath = os.env["TEXMFCACHE"] or os.env["TMP"] or 
>> os.env["TEMP"] or os.env["TMPDIR"] or os.get["HOME"] or 
>> os.env["HOMEPATH"] or nil
> 
>   Sounds reasonable, but why not test for the existence of the /tmp
> directory also?

i'll consider it ... wold be funny if there is a tem pvar but no path ...

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the dev-context mailing list