Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!stc!stl!idec!prlhp1!pearmana From: pearmana@prlhp1.prl.philips.co.uk (Andy Pearman) Newsgroups: comp.sys.hp Subject: c-shell variables Keywords: foreach variable Message-ID: <1052@prlhp1.prl.philips.co.uk> Date: 20 Feb 90 11:35:04 GMT Organization: Philips Research Laboratories, Redhill, UK Lines: 27 Hi, When I run the following c-shell program: #!/bin/csh foreach digit1 ( 0 1 2 3 4 5 6 7 8 9 ) echo $digit1 end 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 ? Andy -- Andy Pearman, Computer Dept, Philips Research Labs, Redhill, Surrey, England. pearmana@prl.philips.co.uk