Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!yale!cmcl2!lanl!opus!jthomas From: jthomas@nmsu.edu (James Thomas) Newsgroups: comp.sys.hp Subject: Re: c-shell variables Message-ID: <545@opus.NMSU.EDU> Date: 22 Feb 90 19:15:17 GMT References: <1052@prlhp1.prl.philips.co.uk> Sender: news@nmsu.edu Organization: NMSU Computer Science Lines: 18 In-reply-to: pearmana@prlhp1.prl.philips.co.uk's message of 20 Feb 90 11:35:04 GMT In article <1052@prlhp1.prl.philips.co.uk> pearmana@prlhp1.prl.philips.co.uk (Andy Pearman) writes: andy> When I run the following c-shell program: andy> #!/bin/csh andy> foreach digit1 ( 0 1 2 3 4 5 6 7 8 9 ) andy> echo $digit1 andy> end andy> I get the error message : andy> foreach: Invalid variable. The error message is caused by the variable name "digit1". The same error message is produced by Sun's version of csh. "i1" fails as well. So, in spite of the manual claiming that variable names consist of letters, digits, and underscores, it does not seem they can end with a digit. Seems like a bug to me.