From owner-freebsd-questions Tue Jul 9 10:19:41 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ACD2E37B400 for ; Tue, 9 Jul 2002 10:19:38 -0700 (PDT) Received: from flamingo.mail.pas.earthlink.net (flamingo.mail.pas.earthlink.net [207.217.120.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id 37BEE43E3B for ; Tue, 9 Jul 2002 10:19:38 -0700 (PDT) (envelope-from effdefender@earthlink.net) Received: from lsanca1-ar19-4-47-010-080.lsanca1.elnk.dsl.genuity.net ([4.47.10.80] helo=Family) by flamingo.mail.pas.earthlink.net with smtp (Exim 3.33 #1) id 17RyeE-000765-00; Tue, 09 Jul 2002 13:19:34 -0400 Message-ID: <001001c2276c$bacddcc0$0301a8c0@sys.gtei.net> Reply-To: "James" From: "James" To: "David Smithson" , "FreeBSD-Questions" References: <006801c2276b$f703f1d0$0801a8c0@customfilmeffects.com> Subject: Re: How do I repeat a command N times? Date: Tue, 9 Jul 2002 10:19:06 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'm still new, but: It's probably your shell. The C-Shell (csh) isn't good for programming scripts. Try changing to the Bourne shell (sh) and running it again. Switch to the Bourne shell simply by typing "sh" I was messing with some basic script programs yesterday (though I haven't learned Perl yet), and it would not work (I had similar errors) unless I switched back to the Bourne shell. I think you might be able to program the C-Shell with C like statements, but I'm still learning. Hope this helps! -James Turnbull ----- Original Message ----- From: "David Smithson" To: "FreeBSD-Questions" Sent: Tuesday, July 09, 2002 10:13 AM Subject: Re: How do I repeat a command N times? > Wow! So many options. > > Perl returns: "Badly placed ( " > > My shell is csh > > CSH returns "let: arith: syntax error: 'x=+1'" , yet continues and works. > What's with the error? > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message