Test command giving inconsistent results.

René Berber r.berber@computer.org
Thu Dec 16 01:50:00 GMT 2010


On 12/15/2010 6:04 PM, Andy Hall wrote:

> 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

Try :

test -r /cygdrive/c/Program\ Files/Java/j2sdk1.4.2_16/bin/java.exe &&
echo readable

-- 
René Berber



--
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