This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Test command giving inconsistent results.
- From: "Andy Hall" <fixpertise-consulting at comcast dot net>
- To: <cygwin at cygwin dot com>
- Date: Wed, 15 Dec 2010 16:07:53 -0800
- Subject: Test command giving inconsistent results.
Ignore this. My brain is fried.
This is one in the same vein as the one I reported back in October.
The test command is giving different results depending on the path used.
ahall@ahall-pc /cygdrive/c/Program Files/Java/j2sdk1.4.2_16/bin
$ ls -l
total 1320
... <Some files deleted for clarity>
-rwx------+ 1 ahall None 45168 2007-09-17 02:27 java.exe
... <More files deleted for clarity>
<Simple file name used.>
ahall@ahall-pc /cygdrive/c/Program Files/Java/j2sdk1.4.2_16/bin
$ test -r java.exe && echo readable
readable
<Here the full path is used!>
ahall@ahall-pc /cygdrive/c/Program Files/Java/j2sdk1.4.2_16/bin
$ test -r /cygdrive/c/j2sdk1.4.2_16/bin/java.exe && echo readable
ahall@ahall-pc /cygdrive/c/Program Files/Java/j2sdk1.4.2_16/bin
$ uname -r
1.7.7(0.230/5/3)
Andy Hall
--
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