csh foreach variable can't have digit
Peter Montgomery
pmontgom at sdcsmb.UUCP
Tue Oct 29 13:40:32 AEST 1985
# 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.
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list