delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/27/08:06:24

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
Date: Tue, 27 May 2003 13:07:18 +0100
To: cygwin AT cygwin DOT com
Subject: Re: behaviour of "for (( exp1; exp2; exp3 )); do COMMANDS; done"
Message-ID: <20030527120718.GA22030@convex.org.uk>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <002901c32427$2e1553e0$78d96f83 AT pomello> <PHENJGDFMJPEBOBLGEMOKENMCBAA DOT peter DOT oosterlynck AT oracle DOT com> <ocj6dvc16hc7e702hhe1dktohpm1306oi6 AT 4ax DOT com>
Mime-Version: 1.0
In-Reply-To: <ocj6dvc16hc7e702hhe1dktohpm1306oi6@4ax.com>
User-Agent: Mutt/1.5.3i
From: Stuart Brady <stuart AT convex DOT org DOT uk>

On Tue, May 27, 2003 at 12:42:21PM +0100, Sam Edge wrote:

> 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.

You've made the assumption that bash is always in /bin. I've seen it
in /bin, /usr/bin, /usr/local/bin, /usr/contrib/bin, and /opt/bash/bin.
~/bin would be another likely place for it.
-- 
Stuart Brady

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019