[OS X TeX] Remarks about TeX on Leopard

Peter Dyballa Peter_Dyballa at Web.DE
Sun Nov 4 13:30:14 CET 2007

Am 03.11.2007 um 10:59 schrieb Bruno Voisin:

> Two remarks:
> - Regarding the first fix, namely replacing in simpdftex all  
> occurrences of
> 	echo -n
> with
> 	printf "%s"

This is not needed in my opinion. And it's a bad substitution: echo  
is built-in to bash and other shells (man builtin) while printf is an  
external programme.

The use of 'echo -n' in these three places in simpdftex is simply  
unnecessary, if not faulty:

	126:	argwithoutlead=`echo -n "$1"|sed 's/^--//'`
	434:	nosuffixbasename=`echo -n ${basename}|sed 's/\.[^.]*$//'`
	435:	nodvisuffixbasename=`echo -n ${basename}|sed 's/\.[dD][vV][iI] 

The first argument of the script (simpdftex) cannot contain a new- 
line character, and neither can the base name of the file to process.  
So a simple echo is just enough.



Rain is saved up in cloud banks.

------------------------- 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 macostex-archives mailing list