Test command giving inconsistent results.

Andy Hall fixpertise-consulting@comcast.net
Thu Dec 16 01:47:00 GMT 2010


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



More information about the Cygwin mailing list