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" To: Subject: Test command giving inconsistent results. Date: Wed, 15 Dec 2010 16:04:17 -0800 Message-ID: <726030B512B24D0AA5160CBB2B0CBB7D@ahallpc> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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 ... -rwx------+ 1 ahall None 45168 2007-09-17 02:27 java.exe ... ahall AT ahall-pc /cygdrive/c/Program Files/Java/j2sdk1.4.2_16/bin $ test -r java.exe && echo readable readable 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