[tex-live] kpsewhich

Olaf Weber olaf at infovore.xs4all.nl
Fri Mar 26 21:55:20 CET 2004


Hans Hagen writes:

> Hi,
> When using kpsewhich, there is a dependency on the OS

> linux:

>    kpsewhich -expand-var "\$SELFAUTOPARENT"
>    kpsewhich -expand-var '$SELFAUTOPARENT'

> windows

>    kpsewhich -expand-var $SELFAUTOPARENT
>    kpsewhich -expand-var "$SELFAUTOPARENT"

Just for a lark, how about

	kpsewhich -expand-var "$"SELFAUTOPARENT

> this means that it's rather uncomfortable to write scripts that are
> portable. So, i wonder if it's possible to make kpsewhich in this
> respect platform independent.

On consideration, I'm not sure what you mean by "platform independent"
in this case.  Clearly a script cannot be interpreter-independent; a
script written for sh won't run under csh, perl, ruby, or command.com.

-- 
Olaf Weber

               (This space left blank for technical reasons.)



More information about the tex-live mailing list