This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Test command giving inconsistent results.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]