From owner-freebsd-questions Wed Dec 4 01:24:22 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id BAA20297 for questions-outgoing; Wed, 4 Dec 1996 01:24:22 -0800 (PST) Received: from rommel.lostnet.org ([206.96.54.199]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id BAA20291 for ; Wed, 4 Dec 1996 01:24:17 -0800 (PST) Received: (from cbrown@localhost) by rommel.lostnet.org (8.6.12/8.6.9) id AAA13433; Wed, 4 Dec 1996 00:23:02 -0900 Date: Wed, 4 Dec 1996 00:23:02 -0900 (AKST) From: "Christopher E. Brown" X-Sender: cbrown@rommel.lostnet.org To: sln@public.jn.sd.cn cc: questions@freebsd.org Subject: Re: shell programming In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Wed, 4 Dec 1996 sln@public.jn.sd.cn wrote: > Hi, > > I want to calculate intergers under Bourne Shell, I input the following: > > a=10 > a='expr $a+10' > a=10 a= `expr $a + 10` Note the spaces and the ` ` not ' ' `expr $a + 10` says execute expr and grab the output 'expr $a + 10' say this is a literal (same as using " ") ---------------------------------------------------------------------------- Christopher E. Brown WL7CLA As folks might have suspected, not much survives except roaches, and they don't carry large enough packets fast enough... --About the Internet and nuclear war. ----------------------------------------------------------------------------