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 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: 1.7.1: dash/ash test -x broken? Date: Tue, 9 Feb 2010 14:30:32 -0600 Message-ID: In-Reply-To: <1265746240.20790.ezmlm@cygwin.com> References: <1265746240 DOT 20790 DOT ezmlm AT cygwin DOT com> From: "Cobb, Christopher (Contr) (IS)" To: X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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