🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #170

simple csh question

#170
From: Ben Bryant
Date: Tue, 28 Jul 1992 00:58
17 lines
940 bytes
Does anyone know why the following shell code snippet for the csh keeps giving
me a "@: Expression syntax" error message? Code follows:

foreach record (`cat somefile`) # `somefile' contains simple ascii records. one number
                                # to a line.
  @ ybacc = $ybacc + ((($record - $bave) * ($record - $bave))/$bcount)
end

All the above variables are simple integer variables that have been previously
calculated. 

Any help would be most welcome. Thanks much.

-Benjamin Bryant
<bdbryan@eng.clemson.edu>

Keywords: 
Technical Details
Message-ID: <1992Jul28.005807.3129@hubcap.clemson.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!hubcap!luna!bdbryan

Show Full Headers
Complete Article Headers
Newsgroups: comp.unix.shell
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!hubcap!luna!bdbryan
From: bdbryan@eng.clemson.edu (Ben Bryant)
Subject: simple csh question
Message-ID: <1992Jul28.005807.3129@hubcap.clemson.edu>
Sender: news@hubcap.clemson.edu (news)
Reply-To: bdbryan@eng.clemson.edu
Organization: College of Engineering, Clemson Univ.
Date: Tue, 28 Jul 1992 00:58:07 GMT
Lines: 20