delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-ID: | <3F6FFDD6.27C0D7AC@dessent.net> |
Date: | Tue, 23 Sep 2003 01:01:26 -0700 |
From: | Brian Dessent <brian AT dessent DOT net> |
Organization: | My own little world... |
X-Accept-Language: | en,en-US |
MIME-Version: | 1.0 |
To: | Cygwin <cygwin AT cygwin DOT com> |
Subject: | Re: Math working on command line but not in script |
References: | <DDEDIPLLKIAMLBCBFCHECEDGCPAA DOT relaxedrob AT optusnet DOT com DOT au> |
Note-from-DJ: | This may be spam |
Robert Mark Bram wrote: > > Howdy All! > > I have a small script called maths.sh with the following code in it: > > #/usr/bin/bash The features you're trying to use are bash-specific. The above shebang is not correct (you need a ! after the #, as in "#!/path/to/file") and so the script is being executed not by bash but by sh which doesn't understand the $(( foo )) syntax. Brian -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |