From owner-freebsd-questions Wed Jun 9 2:54:40 1999 Delivered-To: freebsd-questions@freebsd.org Received: from stud.ee.ethz.ch (tardis-delek-fast.ee.ethz.ch [129.132.2.199]) by hub.freebsd.org (Postfix) with ESMTP id 89F9D14F5C for ; Wed, 9 Jun 1999 02:54:35 -0700 (PDT) (envelope-from lpruf@stud.ee.ethz.ch) Received: from tardis-a2.ee.ethz.ch (lpruf@tardis-a2.ee.ethz.ch [129.132.3.12]) by stud.ee.ethz.ch (8.8.4/8.8.8) with ESMTP id LAA21872; Wed, 9 Jun 1999 11:54:35 +0200 (MET DST) Received: from localhost (lpruf@localhost) by tardis-a2.ee.ethz.ch (8.8.4/8.8.8) with ESMTP id LAA18762; Wed, 9 Jun 1999 11:54:32 +0200 (MET DST) X-Authentication-Warning: tardis-a2.ee.ethz.ch: lpruf owned process doing -bs Date: Wed, 9 Jun 1999 11:54:32 +0200 (MET DST) From: Lukas Ruf X-Sender: lpruf@tardis-a2.ee.ethz.ch Reply-To: Lukas Ruf To: Ritwik Bhattacharya Cc: FreeBSD Questions Subject: Re: CSH script -- Need help In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I define OS with setenv OS `uname` within my ~/.tcshrc. In fact, I made further test: even executing the script with all lines outcommented, I receive this error message. Thanks, Lukas On Wed, 9 Jun 1999, Ritwik Bhattacharya wrote: > Date: Wed, 9 Jun 1999 15:15:37 +0530 (IST) > From: Ritwik Bhattacharya > To: Lukas Ruf > Cc: FreeBSD Questions > Subject: Re: CSH script -- Need help > > > #!/bin/csh > > > > set TAR=/tmp > > set FILES=(Asker Bidder Decider Receiver Sender) > > set PRE=DA_ > > > > if (-d $TAR) then > > foreach xFILE ($FILES) > > cp ${PRE}${xFILE}.${OS} ${TAR}/${xFILE} > > I don't know about the limit thing, but where's $OS being defined ? > > Ritwik > > The fact that a believer is happier than a sceptic is no more to > the point than the fact that a drunken man is happier than a sober > one. -- George Bernard Shaw > ------------------------------------------------------------------ > Daimler Benz Research Center India 302 A Somerset Apartments > 137, Infantry Road 18 MG Road > Bangalore 560 001 Bangalore 560 001 > India India > > Tel : +91 80 286 1722 > Fax : +91 80 286 1723 > Mail : ritwik@dbrci.blr.daimlerbenz.com > ------------------------------------------------------------------ > Lukas -- *** ALWAYS MAILTO:"Lukas Ruf " *** Lukas Ruf // Neugutstr. 9 // 8002 Zurich // Switzerland // +41-1-2813545 (PGP2.6.3) Fingerprint = 37CF 3AB4 B0F7 0AF5 C308 4188 8C10 86FE To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message