[OS X TeX] TeXShop and Bibunits engine
Justin C. Walker
justin at mac.com
Tue May 15 19:31:07 CEST 2007
On May 15, 2007, at 10:01 , Joshua Smith wrote:
> On May 15, 2007, at 9:48 AM, Chris Goedde wrote:
>> On May 15, 2007, at 11:35 AM, Joshua Smith wrote:
>>> There seems to be a problem with foreach. I have reduced the
>>> engine down to
>>>
>>> #!/bin/tcsh
>>>
>>> ls -l *
>>> foreach f (*)
>>> echo $f
>>> end
>>>
>>> and when I run this, I get the console output
>>>
>>
>>> It only echos the first file name, which just happened to be
>>> bu1.aux. Any ideas?
>>
>> When I run it on my machine, it echos all the files in folder.
>
> Okay, then what is wrong with my system? I have no idea where to
> even begin to look.
I get "expected behavior" as well. For a start, create a directory
in /tmp, cd to it, and create a small number of files with 'touch':
$ mkdir /tmp/temp
$ cd /tmp/temp
$ touch a b c
The run the shell file, twice, as follows (showing what I get on my
system):
$ /tmp/y.sh
-rw-r--r-- 1 justin wheel 0 May 15 10:25 a
-rw-r--r-- 1 justin wheel 0 May 15 10:25 b
-rw-r--r-- 1 justin wheel 0 May 15 10:25 c
a
b
c
$ tcsh -x /tmp/y.sh
ls -ld a b c
-rw-r--r-- 1 justin wheel 0 May 15 10:25 a
-rw-r--r-- 1 justin wheel 0 May 15 10:25 b
-rw-r--r-- 1 justin wheel 0 May 15 10:25 c
foreach f ( * )
echo a
a
end
echo b
b
end
echo c
c
end
And post the results as well :-}
If this works as you want it to, then post the results from the
directory where it fails.
Justin
--
Justin C. Walker, Curmudgeon-At-Large
Director
Institute for the Enhancement of the Director's Income
--------
"Weaseling out of things is what separates us from the animals.
Well, except the weasel."
- Homer J Simpson
--------
------------------------- 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