bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

a=bla\ bbb;echo $((a++))


From: Dan Jacobson
Subject: a=bla\ bbb;echo $((a++))
Date: Mon, 17 Dec 2001 09:44:25 +0800
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7 (i386-mandrake-linux-gnu)

if you're gonna let me turn it into a number, why trip up on such
niceties like "if it had a space in it"?

$ a=bla;echo $((a++)) $((a++))
0 1
$ a=bla\ bbb;echo $((a++)) $((a++))
bash: bla bbb: syntax error in expression (error token is "bbb")
$ echo $BASH_VERSION
2.05.0(1)-release

OH AND BY THE WAY, ESC-. on these only gets the ")".  What fun is
that?
-- 
http://www.geocities.com/jidanni/ Tel+886-4-25854780



reply via email to

[Prev in Thread] Current Thread [Next in Thread]