Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: =?iso-8859-2?Q?Marek?= To: cygwin AT cygwin DOT com Subject: =?iso-8859-2?Q?Problem_with_shell_script?= Date: Sun, 24 Jul 2005 21:13:02 +0200 Content-Type: text/plain; charset="iso-8859-2"; Content-Transfer-Encoding: 8bit X-Originator: 194.145.96.66 Message-Id: <20050724191302.58251D10DB@rekin6.o2.pl> X-IsSubscribed: yes When I put commands below in command line: i=1 echo $i i=$(($i+1)) echo $i everything works well (i is incremented from 1 to 2), but when I run this as a shell script the result is: 1+1 instead of 2 How should I do incrementation in shell script? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/