Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
From: "Gary R. Van Sickle" <g.r.vansickle@worldnet.att.net>
To: <cygwin@cygwin.com>
Subject: RE: Ash manual/info. (was: Re: "==" operand not found)
Date: Thu, 24 Oct 2002 01:58:31 -0500
Message-ID: <NCBBIHCHBLCMLBLOBONKOEPADGAA.g.r.vansickle@worldnet.att.net>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
In-Reply-To: <3DB77B50.5F5F7F10@yahoo.com>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

> Randall R Schulz wrote:
> >
> > You're most likely accustomed on your Linux system to "/bin/sh"
> > being BASH. On Cygwinm /bin/sh is ASH, and it is far more minimal
> > in its implementation of the POSIX shell standard, and does not
> > provide "==" as an equivalent for "=" in the "test" (a.k.a. "[")
> > built-in.
>
> While there is an info file on bash, and even a man entry, there
> seems to be nothing whatsoever about ash on the system.  If we are
> not able to use the abilities of bash,

Put "#!/bin/bash" (no quotes) at the top of the script in question and go nuts.

As far as ash docs are concerned, a quick Google reveals little other than that
ash apparently stands for "[Kenneth] Almquist's sh".  You'll probably have more
success looking for "POSIX shell standards".

--
Gary R. Van Sickle
Brewer.  Patriot.



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

