| www.delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=-2.3 required=5.0 tests=AWL,BAYES_00 |
| X-Spam-Check-By: | sourceware.org |
| X-Authority-Analysis: | v=1.0 c=1 a=GJfE9n3WhT8A:10 a=xJZ8jTofWvLP3tZY8uwA:9 a=Z2dspsVI0ltGQaAU4fk0KSBU45kA:4 |
| Message-ID: | <4B8618EE.2070807@columbus.rr.com> |
| Date: | Thu, 25 Feb 2010 01:30:06 -0500 |
| From: | Paul McFerrin <pmcferrin AT columbus DOT rr DOT com> |
| Reply-To: | pmcferrin AT columbus DOT rr DOT com |
| User-Agent: | Thunderbird 2.0.0.23 (Windows/20090812) |
| MIME-Version: | 1.0 |
| To: | cygwin AT cygwin DOT com |
| Subject: | test for hard links always fail with pdksh |
| 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 |
A new wrinkle with hard links. If you are testing for them in pdksh,
they will always fail. I.E.:
if test -L links/$filename.$inumb
then :
else
ln $filename $filename.$inumb
fi
The above test will always fail and thus will always attempt to
re-create the hard link.
--
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 |