From owner-freebsd-questions Mon Jul 29 0: 3:52 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 85D7337B400 for ; Mon, 29 Jul 2002 00:03:48 -0700 (PDT) Received: from bodb.mc.mpls.visi.com (bodb.mc.mpls.visi.com [208.42.156.104]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1072943E3B for ; Mon, 29 Jul 2002 00:03:48 -0700 (PDT) (envelope-from hawkeyd@visi.com) Received: from sheol.localdomain (hawkeyd-fw.dsl.visi.com [208.42.101.193]) by bodb.mc.mpls.visi.com (Postfix) with ESMTP id 4CF3E49C1; Mon, 29 Jul 2002 02:03:47 -0500 (CDT) Received: (from hawkeyd@localhost) by sheol.localdomain (8.11.6/8.11.6) id g6T73kP36846; Mon, 29 Jul 2002 02:03:46 -0500 (CDT) (envelope-from hawkeyd) Date: Mon, 29 Jul 2002 02:03:46 -0500 (CDT) Message-Id: <200207290703.g6T73kP36846@sheol.localdomain> Mime-Version: 1.0 X-Newsreader: knews 1.0b.1 Reply-To: hawkeyd@visi.com Organization: if (!FIFO) if (!LIFO) break; References: <20020726221426.21bacb51.ugly_inhuman.org@ns.sol.net> In-Reply-To: <20020726221426.21bacb51.ugly_inhuman.org@ns.sol.net> From: hawkeyd@visi.com (D J Hawkey Jr) Subject: Re: 'let' syntax in /bin/sh X-Original-Newsgroups: sol.lists.freebsd.questions To: ugly@inhuman.org, freebsd-questions@freebsd.org Content-Type: text/plain; charset=us-ascii 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 In article <20020726221426.21bacb51.ugly_inhuman.org@ns.sol.net>, ugly@inhuman.org writes: > Hello, > > For the life of me I haven't been able to figure out the correct syntax > for using 'let' in the sh that comes with FreeBSD (4.6-STABLE). > > $ let x=0 > let: arith: syntax error: "x=0" > > I have tried many other variations, and read through 'man sh', as well > as searching google. Could someone point me in the right direction? The syntax is correct, but the shell isn't. 'let' is a Korn shell (ksh) keyword. > Thanks, > -Andrew Dave -- Windows: "Where do you want to go today?" Linux: "Where do you want to go tomorrow?" FreeBSD: "Are you guys coming, or what?" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message