Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site cca.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!cca!cjh From: cjh@cca.UUCP (Chip Hitchcock) Newsgroups: net.bugs.4bsd Subject: csh bug Message-ID: <7994@cca.UUCP> Date: Wed, 21-May-86 14:45:40 EDT Article-I.D.: cca.7994 Posted: Wed May 21 14:45:40 1986 Date-Received: Sun, 25-May-86 18:38:36 EDT Reply-To: cjh@cca.UUCP (Chip Hitchcock) Distribution: net Organization: Computer Corp. of America, Cambridge Lines: 32 I first ran into this on a Sun-2/120 running Sun 2.2 (derived from 4.2BSD), but found the same results on a 11/780 running 4.2 BSD. With "0^J" (i.e., normal end-of-line character) in files xyzzy{,1}_no, this #! /bin/csh set xyzzy1_no = ` cat xyzzy1_no ` @ xyzzy1_no ++ and this #! /bin/csh set xyzzy_no = ` cat xyzzy_no ` @ xyzzy1_no = $xyzzy_no + 1 get "@: syntax error"; #! /bin/csh set xyzzy_no = ` cat xyzzy_no ` @ xyzzy_no ++ and #! /bin/csh set xyzzy1_no = ` cat xyzzy1_no ` @ xyzzy_no = $xyzzy1_no + 1 work. This appears to me to be a bug, given the manual definition: Shell variables have names consisting of up to 20 letters and digits starting with a letter. The underscore character is considered a letter. and the fact that the references to using @ says nothing to limit this. Am I missing something? Any suggestions? (Yes, I can script around it, but it's a nuisance. Changing the alpha part of the variable name doesn't alter the results.) CHip (Chip Hitchcock) SUSHIDO -- the way of the tuna ARPA: CJH@CCA-UNIX uu: ...!{decvax, cbosgd, seismo!harvard, linus}!cca!cjh