From: urgrue <urgrue@tumsan.fi>
To: linux-admin@vger.kernel.org
Subject: bash arithmetic
Date: Thu, 27 Feb 2003 12:00:40 +0200 [thread overview]
Message-ID: <20030227100040.GE2148@fede2.tumsan.fi> (raw)
simple problem:
NAME=john
echo name is $NAME
echo now im gonna $NAME=$(($NAME+1))
$NAME=$(($NAME+1))
returns:
name is john
now im gonna john=1
./testscript: john=1: command not found
but whats wrong with john=1? i want to set that variable. i can put
john=1 in the script (in that form) and it works fine.
any suggestions?
next reply other threads:[~2003-02-27 10:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-27 10:00 urgrue [this message]
2003-02-27 10:22 ` bash arithmetic Carl
2003-02-27 14:35 ` Jeff Largent
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030227100040.GE2148@fede2.tumsan.fi \
--to=urgrue@tumsan.fi \
--cc=linux-admin@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).