Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Aug 2005 11:02:59 +0800
From:      Xu Qiang <Qiang.Xu@fujixerox.com>
To:        dpk <dpk@dpk.net>, Giorgos Keramidas <keramida@ceid.upatras.gr>
Cc:        freebsd-questions@freebsd.org
Subject:   RE: Help on bash script?
Message-ID:  <20050812025925.942541D9A4@imss.sgp.fujixerox.com>

next in thread | raw e-mail | index | archive | help

This is my test script: 

---------------------
#!/bin/bash

var=0
var=$[3]

vari=0
++vari

echo $var
echo $vari
---------------------

The result is: 
./test.sh: ++vari: command not found
3
0

So the manual of bash is incorrect? 

Regards,
Xu Qiang





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050812025925.942541D9A4>