Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!ucsd!ucbvax!hplabs!hpda!hpcupt1!hpisod2!decot From: decot@hpisod2.HP.COM (Dave Decot) Newsgroups: comp.sys.hp Subject: Re: c-shell variables Message-ID: <16710044@hpisod2.HP.COM> Date: 22 Feb 90 23:19:19 GMT References: <1052@prlhp1.prl.philips.co.uk> Organization: Hewlett Packard, Cupertino Lines: 16 > foreach digit1 ( 0 1 2 3 4 5 6 7 8 9 ) > > I get the error message: foreach: Invalid variable. > > We are running HP-UX 6.21 and c-shell variables are permitted to consist > of digits. > > Is this a bug with foreach and if so is it fixed in 6.5 or 7.0 ? Yes, it is a bug (it has been reported before), and no, it is not fixed in either of those releases. This bug is also present in System VR2's C-shells (don't know about VR3 or VR4), and it still appears in 4.3BSD's C-shell. Dave Decot