www.delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Subject: | RE: mv: permission denied - bug |
MIME-Version: | 1.0 |
Date: | Mon, 3 Jul 2006 09:37:28 +0200 |
Message-ID: | <083ED85235915A4AAE91081E3CC6148702CBD8@ihbexc1.inconso.de> |
From: | "Hofmann Kai" <KHofmann AT inconso DOT de> |
To: | <cygwin AT cygwin DOT com> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
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 |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id k637c2nV030792 |
I changed the code from te convkey.sh script that will be called by the find command to: grep -q -I "\\$" "$1" err=$? if [ $err -eq 0 ] ; then type="CR" cat "$1" | sed -f /cygdrive/x/test/bin/convkeyw.sed > /tmp/1.tmp mv -f -u /tmp/1.tmp "$1" errcode=$? if [ $errcode -ne 0 ]; then echo "ERROR CODE $errcode" mv -f -u /tmp/1.tmp "$1" errcode=$? if [ $errcode -ne 0 ]; then echo "Second move also failed!" fi fi fi Very interesting is here, that the second move seems to work. I think this is a prove for a timing problem. Greetings Kai -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |