www.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://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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: | <00b201c50767$a507e0b0$f968dc54@I2.COM> |
From: | "Paolo Gesmundo" <paolo DOT gesmundo AT tiscali DOT it> |
To: | <cygwin AT cygwin DOT com> |
Subject: | Unable to properly execute a let statement from a shell script |
Date: | Mon, 31 Jan 2005 08:36:57 +0100 |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
Hi all, I am running bash on XP I have a very simple script a.sh a.sh: ==================== export P=1 let Q=$P+1 echo P=$P echo Q=$Q ==================== Case 1) If at prompt I run: >a.sh let: not found P=1 Q= Case 2) If I run: >bash a.sh P=1 Q=2 I know that I could modify a.sh by adding #!/bin/bash at the top of the file but I would need to avoid this otherwise I have to modify too many scripts Is there a way to run a.sh like in Case 1 and get the proper result like in Case 2? Thanks Paolo -- 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 |