delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/02/08/09:46:30

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
Reply-To: <Jean-Paul DOT Gabrielli AT sema DOT fr>
From: "Jean-Paul Gabrielli" <Jean-Paul DOT Gabrielli AT sema DOT fr>
To: <cygwin AT sourceware DOT cygnus DOT com>
Subject: __[[__ operator in bash ?
Date: Tue, 8 Feb 2000 15:49:51 +0100
Message-ID: <000701bf7243$c0fa2ee0$8b01010a@volga.sophia.sema.fr>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3

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!


Thanks for helping
j-paul gabrielli
sema dts

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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