This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Test command giving inconsistent results.
- From: René Berber <r dot berber at computer dot org>
- To: cygwin at cygwin dot com
- Date: Wed, 15 Dec 2010 18:08:52 -0600
- Subject: Re: Test command giving inconsistent results.
- References: <726030B512B24D0AA5160CBB2B0CBB7D@ahallpc>
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