Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 May 1996 07:27:39 -0700 (PDT)
From:      Wayne Hernandez <hernanw@FSL.ORST.EDU>
To:        questions <freebsd-questions@freebsd.org>
Subject:   foreach usage
Message-ID:  <Pine.SUN.3.91.960514072256.22378B-100000@picea.FSL.ORST.EDU>

next in thread | raw e-mail | index | archive | help

I am having problems with using foreach in a script, it works ok under 
SunOS. 

Is there a better way for me to document what I did?


#!/bin/csh
set COLS = (Makefile bounce bounce-remind majordomo majordomo.pl 
new-list resend wrapper wrapper.c)
echo $COLS

foreach i ($COLS)
        echo $i
	diff ~hernanw/majordomo-1.93/$1 ~hernanw/test/majordomo-1.93/$1 > $1.diff
end

This process "Makefile", but does not process the rest.

Wayne






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SUN.3.91.960514072256.22378B-100000>