From owner-freebsd-questions Wed May 15 07:57:19 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id HAA23997 for questions-outgoing; Wed, 15 May 1996 07:57:19 -0700 (PDT) Received: from fslg8.fsl.noaa.gov (fslg8.fsl.noaa.gov [137.75.131.171]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id HAA23982 for ; Wed, 15 May 1996 07:57:13 -0700 (PDT) Received: by fslg8.fsl.noaa.gov (5.57/Ultrix3.0-C) id AA15899; Wed, 15 May 96 14:57:04 GMT Message-Id: <9605151457.AA15899@fslg8.fsl.noaa.gov> Received: by emu.fsl.noaa.gov (1.40.112.3/16.2) id AA108422197; Wed, 15 May 1996 08:56:37 -0600 Date: Wed, 15 May 1996 08:56:37 -0600 From: Sean Kelly To: hernanw@fsl.orst.edu Cc: freebsd-questions@freebsd.org In-Reply-To: (message from Wayne Hernandez on Tue, 14 May 1996 07:27:39 -0700 (PDT)) Subject: Re: foreach usage Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >>>>> "Wayne" == Wayne Hernandez writes: Wayne> foreach i ($COLS) Wayne> echo $i Wayne> diff ~hernanw/majordomo-1.93/$1 ~hernanw/test/majordomo-1.93/$1 You want $i, not $1, here ..................^..........and here.............^ (And, csh scripts are nasty. Use sh.) -- Sean Kelly NOAA Forecast Systems Laboratory kelly@fsl.noaa.gov Boulder Colorado USA http://www-sdd.fsl.noaa.gov/~kelly/