All of lore.kernel.org
 help / color / mirror / Atom feed
* bash arithmetic
@ 2003-02-27 10:00 urgrue
  2003-02-27 10:22 ` Carl
  2003-02-27 14:35 ` Jeff Largent
  0 siblings, 2 replies; 3+ messages in thread
From: urgrue @ 2003-02-27 10:00 UTC (permalink / raw)
  To: linux-admin

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?

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-02-27 14:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-27 10:00 bash arithmetic urgrue
2003-02-27 10:22 ` Carl
2003-02-27 14:35 ` Jeff Largent

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.