delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=1.2 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RFC_ABUSE_POST,TW_RW,T_RP_MATCHES_RCVD |
X-Spam-Check-By: | sourceware.org |
From: | "Andy Hall" <fixpertise-consulting AT comcast DOT net> |
To: | <cygwin AT cygwin DOT com> |
Subject: | Test command giving inconsistent results. |
Date: | Wed, 15 Dec 2010 16:04:17 -0800 |
Message-ID: | <726030B512B24D0AA5160CBB2B0CBB7D@ahallpc> |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
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 AT 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 AT 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 AT 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 AT 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |