delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=3.6 required=5.0 tests=AWL,BAYES_00,BUG6152_INVALID_DATE_TZ_ABSURD,INVALID_DATE_TZ_ABSURD,L_SPAM_TOOL_13 |
X-Spam-Check-By: | sourceware.org |
Date: | Mon, 1 Aug 2011 13:58:58 +0159 |
From: | Denis Excoffier <Cygwin AT Denis-Excoffier DOT org> |
To: | cygwin AT cygwin DOT com |
Subject: | bash-4.2 and symlink to folder that turns to be not executable |
Message-ID: | <20110801115922.GA1124@po8371> |
MIME-Version: | 1.0 |
User-Agent: | Mutt/1.5.21 (2010-09-15) |
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 |
Hello, I have a bash-4.2 (installed in /home/my), compiled with GCC 4.6.1 directly from the sources. With this one, the following script: --------------------------------- #!/home/my/bash-4.2 rm -rf /tmp/xxx mkdir -p /tmp/xxx/folder1 ln -s folder1 /tmp/xxx/folder if [ -d /tmp/xxx/folder ]; then echo folder; else echo no folder; fi if [ -x /tmp/xxx/folder ]; then echo execut; else echo no execut; fi exit --------------------------------- produces: folder no execut while the regular /bin/bash (4.1.10), with the same script: --------------------------------- #!/bin/bash rm -rf /tmp/xxx mkdir -p /tmp/xxx/folder1 ln -s folder1 /tmp/xxx/folder if [ -d /tmp/xxx/folder ]; then echo folder; else echo no folder; fi if [ -x /tmp/xxx/folder ]; then echo execut; else echo no execut; fi exit --------------------------------- produces (correctly): folder execut Could be a bug in bash-4.2, but... i have noticed that it occurs only under the newest snapshots. The change occurred between the 2011-07-21 and 2011-07-29 snapshots. My current /proc/version | tr -d '@' is: CYGWIN_NT-5.1 version 1.7.10s(0.249/5/3) (cgf) (gcc version 4.3.4 20090804 (release) 1 (GCC) ) 20110801 00:02:52 Could someone please have a look and reproduce this? Regards, Denis Excoffier. -- 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 |