[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#428448: tex-common: user mode in update-fontlang: Does not create TEXMFVAR



On Mon, Jun 11, 2007 at 23:25 +0200, Frank Küster wrote:
> Ralf Stubner <ralf.stubner@web.de> wrote:
> 
> >>     texmfvar=$(kpsewhich --expand-path '$TEXMFVAR')
> >>     if ! echo "$texmfvar" | grep -e ':'; then
> >>         output_file="$texmfvar/$PATH_COMPONENT/$DEFAULT_OUTPUTFILE_BASENAME"
> [...]
> > One could use
> >
> >     texmfvar=$(kpsewhich --var-value=TEXMFVAR)
> >
> > which works even when the directory in question does not yet exist. 
> 
> Yes - but then the grep must be for ',', and I hope that is all that
> needs to be changed.

I would say '[:,]', since both ':' and ',' might indicate a multi part
path. Extreme example:

ralf@skye:~$ kpsewhich --var-value=SYSTEXMF
/var/lib/texmf,/usr/local/share/texmf:/usr/share/texmf:/usr/share/texmf-{texlive,tetex}

cheerio
ralf

PS: According to the begining of texmf.cnf the usage of ',' is
deprecated. Is that new?



Reply to: