[OS X TeX] csh and environment vars

Oliver Buerschaper oliver.buerschaper at mpq.mpg.de
Mon Jun 11 09:28:57 EDT 2007


>> 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.

This I didn't even dare to think of ... would it perhaps also help to  
use other delimiters (double quotes etc.)?

Thanks,
Oliver



------------------------- 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