From owner-freebsd-questions Tue May 14 07:28:02 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id HAA12993 for questions-outgoing; Tue, 14 May 1996 07:28:02 -0700 (PDT) Received: from cornus.FSL.ORST.EDU (root@FSL.ORST.EDU [128.193.112.105]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id HAA12977 for ; Tue, 14 May 1996 07:27:58 -0700 (PDT) Received: from picea.FSL.ORST.EDU (hernanw@picea.FSL.ORST.EDU [128.193.112.3]) by cornus.FSL.ORST.EDU (8.6.9/8.6.9) with ESMTP id HAA26279 for ; Tue, 14 May 1996 07:27:41 -0700 Received: (from hernanw@localhost) by picea.FSL.ORST.EDU (8.7/8.6.9) id HAA22473; Tue, 14 May 1996 07:27:40 -0700 (PDT) Date: Tue, 14 May 1996 07:27:39 -0700 (PDT) From: Wayne Hernandez To: questions Subject: foreach usage Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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