[OS X TeX] TeXShop and Bibunits engine

Peter Dyballa Peter_Dyballa at Web.DE
Mon May 14 19:19:34 EDT 2007


Am 15.05.2007 um 00:59 schrieb Joshua Smith:

> #!/bin/sh
> foreach auxfile (bu*.aux)
>   echo bibtex ‘basename $auxfile .aux‘
>   bibtex ‘basename $auxfile .aux‘
> end

The words "foreach" and "end" are not from (Bourne) shell's syntax  
but from (Tenex) csh.

Command substitution does not work with typographical single quotes  
but with backquotes:

	[`]  U+0060  GRAVE ACCENT


	#!/bin/tcsh
	foreach auxfile (bu*.aux)
	  echo bibtex "`basename $auxfile .aux`"
	  bibtex `basename $auxfile .aux`
	end

or better

	#!/bin/tcsh
	foreach auxfile (bu*.aux)
	  set afile = "`basename $auxfile .aux`"
	  echo bibtex $afile
	  bibtex "$afile"
	end

should work, even if the file names have spaces (without you can  
remove the QUOTATION MARKs).


--
Greetings

   Pete

"engineer: a mechanism for converting caffeine into designs"



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