delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
Message-ID: | <20000208185404.15495.qmail@web115.yahoomail.com> |
Date: | Tue, 8 Feb 2000 10:54:04 -0800 (PST) |
From: | Earnie Boyd <earnie_boyd AT yahoo DOT com> |
Reply-To: | earnie_boyd AT yahoo DOT com |
Subject: | Re: __[[__ operator in bash ? |
To: | Jean-Paul DOT Gabrielli AT sema DOT fr, cygwin AT sourceware DOT cygnus DOT com |
MIME-Version: | 1.0 |
--- Jean-Paul Gabrielli <Jean-Paul DOT Gabrielli AT sema DOT fr> wrote: > Hi, > > What to put as first line (#!) to give bash the 'posix' behavior ? > I did a copy of bash under /usr/bin for portability reasons > > When I got the following script: > #!/usr/bin/sh > if [[ -d /winnt ]] ; then > echo "Found Folder!" > fi > > jpgnt-tstvsn9 > test.shl > [[: not found > jpgnt-tstvsn9 > bash test.shl > Found Folder! > This is a deficiency of the ash port named as sh.exe. You may modify it to do one of the following: 1) if [ -d /winnt ]; then 2) if test -d /winnt; then 3) fix the code for the ash port and submit the patches. Regards, ===== Earnie Boyd <mailto:earnie_boyd AT yahoo DOT com> Cygwin Newbies, please visit <http://www.freeyellow.com/members5/gw32/index.html> __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |