| 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 |
| From: | Sam Edge <sam DOT edgeZZZ AT lineone DOT net> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: behaviour of "for (( exp1; exp2; exp3 )); do COMMANDS; done" |
| Date: | Tue, 27 May 2003 12:42:21 +0100 |
| Organization: | . |
| Reply-To: | cygwin AT cygwin DOT com |
| Message-ID: | <ocj6dvc16hc7e702hhe1dktohpm1306oi6@4ax.com> |
| References: | <002901c32427$2e1553e0$78d96f83 AT pomello> <PHENJGDFMJPEBOBLGEMOKENMCBAA DOT peter DOT oosterlynck AT oracle DOT com> |
| In-Reply-To: | <PHENJGDFMJPEBOBLGEMOKENMCBAA.peter.oosterlynck@oracle.com> |
| MIME-Version: | 1.0 |
| X-Posting-Agent: | Hamster/2.0.0.1 |
| X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id h4RBhCM18372 |
"Peter Oosterlynck" <peter DOT oosterlynck AT oracle DOT com> wrote in <PHENJGDFMJPEBOBLGEMOKENMCBAA DOT peter DOT oosterlynck AT oracle DOT com> in gmane.os.cygwin on Tue, 27 May 2003 10:45:50 +0200: > Tried it with a Bourne shell (sh) on my Redhat AS2.1: works fine. > Tried it with a Bourne shell (sh) in cygwin : fails. The default shell on Linux is (usually) bash. More importantly /bin/sh is simply a link to /bin/bash. /bin/sh on Cygwin defaults to ash, a drop-in replacement for the Bourne Shell. /bin/sh != /bin/bash. Make sure that if your script uses Bash-specific features, it starts with #!/bin/bash and not with #!/bin/sh. That way it'll work anywhere. Regards, -- Sam Edge -- 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 |