[OS X TeX] csh and environment vars
Martin Costabel
costabel at wanadoo.fr
Mon Jun 11 05:35:32 EDT 2007
Oliver Buerschaper wrote:
> Dear all,
>
> does anyone know why the C-Shell doesn't like a script file with the
> following line
>
> setenv TEXMF
> '{$HOMETEXMF,$TEXMFOS,$TEXMFPROJECT,$TEXMFFONTS,$TEXMFLOCAL,$TEXMFEXTRA,!!$TEXMFMAIN}'
>
>
> to be sourced? The error message is
>
> csh: setenv: Too many arguments.
Use \!\! instead of !!
The !!$ is expanded using history substitution and replaced by the last
word from the previous command, even inside single quotes. Depending
what your previous command was, this can have weird effects.
--
Martin
------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/
More information about the MacOSX-TeX
mailing list