From owner-freebsd-questions@FreeBSD.ORG Fri Aug 12 03:00:02 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 42DDB16A41F for ; Fri, 12 Aug 2005 03:00:02 +0000 (GMT) (envelope-from Qiang.Xu@fujixerox.com) Received: from mx21.fujixerox.co.jp (mx21.fujixerox.co.jp [192.26.96.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA77F43D45 for ; Fri, 12 Aug 2005 03:00:01 +0000 (GMT) (envelope-from Qiang.Xu@fujixerox.com) Received: from isvw21.fujixerox.co.jp ([129.249.27.141]) by mx21.fujixerox.co.jp with ESMTP id j7C2xmwT005092; Fri, 12 Aug 2005 11:59:48 +0900 (JST) Received: from ms20.fujixerox.co.jp (localhost [127.0.0.1]) by isvw21.fujixerox.co.jp with ESMTP id j7C2xlNG003448; Fri, 12 Aug 2005 11:59:47 +0900 (JST) Received: from sgpaphq-smtp01.fujixerox.com ([13.198.8.73]) by ms20.fujixerox.co.jp with ESMTP id j7BKveYs013645; Fri, 12 Aug 2005 11:59:46 +0900 (JST) Received: from mailhost.sgp.fujixerox.com by sgpaphq-smtp01.fujixerox.com with ESMTP id 116271021123815572; Fri, 12 Aug 2005 10:59:32 +0800 Received: from localhost (localhost [127.0.0.1]) by localhost.sgp.fujixerox.com (Postfix) with SMTP id 9576A1D9A4; Fri, 12 Aug 2005 10:59:28 +0800 (SGT) Received: from sess.xssc.sgp.xerox.com (unknown [13.198.33.122]) by imss.sgp.fujixerox.com (Postfix) with ESMTP id 942541D9A4; Fri, 12 Aug 2005 10:59:25 +0800 (SGT) From: Xu Qiang To: dpk , Giorgos Keramidas Date: Fri, 12 Aug 2005 11:02:59 +0800 X-Sent-Folder-Path: Sent Items X-Mailer: Oracle Connector for Outlook 9.0.4 60130 (9.0.2711) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-Id: <20050812025925.942541D9A4@imss.sgp.fujixerox.com> Cc: freebsd-questions@freebsd.org Subject: RE: Help on bash script? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Aug 2005 03:00:02 -0000 This is my test script: = --------------------- #!/bin/bash var=3D0 var=3D$[3] vari=3D0 ++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