delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/24/10:39:42

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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Thu, 24 Oct 2002 10:39:30 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: "Gary R. Van Sickle" <g DOT r DOT vansickle AT worldnet DOT att DOT net>
cc: CBFalconer <cbfalconer AT yahoo DOT com>, <cygwin AT cygwin DOT com>
Subject: RE: Ash manual/info. (was: Re: "==" operand not found)
In-Reply-To: <NCBBIHCHBLCMLBLOBONKOEPADGAA.g.r.vansickle@worldnet.att.net>
Message-ID: <Pine.GSO.4.44.0210241036480.13770-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Thu, 24 Oct 2002, Gary R. Van Sickle wrote:

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

'man sh' should get you the ash manpage.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Water molecules expand as they grow warmer" (C) Popular Science, Oct'02, p.51


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

- Raw text -


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