This is the mail archive of the
mailing list for the Cygwin project.
1.7.1: dash/ash test -x broken?
- From: "Cobb, Christopher (Contr) (IS)" <Christopher dot Cobb at ngc dot com>
- To: <cygwin at cygwin dot com>
- Date: Tue, 9 Feb 2010 14:30:32 -0600
- Subject: 1.7.1: dash/ash test -x broken?
- References: <email@example.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
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.
Windows XP Professional Ver 5.1 Build 2600 Service Pack 2
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple