delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-0.6 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
Subject: | 1.7.1: dash/ash test -x broken? |
Date: | Tue, 9 Feb 2010 14:30:32 -0600 |
Message-ID: | <EADE84D0102AB145A5BEA7A5A00CD90101FB9DE1@XMBIL131.northgrum.com> |
In-Reply-To: | <1265746240.20790.ezmlm@cygwin.com> |
References: | <1265746240 DOT 20790 DOT ezmlm AT cygwin DOT com> |
From: | "Cobb, Christopher (Contr) (IS)" <Christopher DOT Cobb AT ngc DOT com> |
To: | <cygwin AT cygwin DOT com> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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 |
I recently upgraded to 1.7.1. I have noticed that dash/ash shell scripts which test for the executability of files don't work. For example, the maven build application comes with a 'mvn' script which contains this line: if [ ! -x "$JAVACMD" ] ; then print error message fi This script runs perfectly in bash. But when executing with dash/ash, it prints the error message (meaning the -x test failed) unless I change '[' to /bin/test (not using the built-in test), in which case it works properly. That certainly point to the built-in dash/ash 'test' command. I believe there is also a similar issue with test -w. Suggestions? Cygwin 1.7.1 Windows XP Professional Ver 5.1 Build 2600 Service Pack 2 dash 0.5.5.1-2 bash 3.2.49-23 -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |