Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site sdcsmb.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!allegra!oliveb!hplabs!sdcrdcf!sdcsmb!pmontgom
From: pmontgom@sdcsmb.UUCP (Peter Montgomery)
Newsgroups: net.bugs.4bsd
Subject: csh foreach variable can't have digit
Message-ID: <113@sdcsmb.UUCP>
Date: Mon, 28-Oct-85 22:40:32 EST
Article-I.D.: sdcsmb.113
Posted: Mon Oct 28 22:40:32 1985
Date-Received: Sat, 2-Nov-85 01:56:12 EST
Reply-To: pmontgom@sdcsmb.UUCP (Peter Montgomery)
Organization: System Development Corp. R+D, Santa Monica
Lines: 22

# csh does not allow the variable name in a foreach to contain a digit.
# For example,

foreach a2z (a b c d e f g h i j k l m n o p q r s t u v w x y z)
	echo $a2z
end

# produces "foreach: Invalid variable."
# It works if both occurrences of "a2z" are changed to "atoz".

# The problem exists on a VAX 11/750, a VAX 11/780,
# and a SUN Workstation, all running 4.2bsd.

# Problem reported by Peter Montgomery of System Development
# Corporation in October, 1985.
-- 
			Peter Montgomery

	{aero,allegra,bmcg,burdvax,hplabs,
	 ihnp4,psivax,randvax,sdcsvax,trwrb}!sdcrdcf!sdcsmb!pmontgom

Don't blame me for the crowded freeways - I don't drive.