This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

__[[__ operator in bash ?


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@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]