X-Spam-Check-By: sourceware.org Content-class: urn:content-classes:message Subject: RE: mv: permission denied - bug MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Mon, 3 Jul 2006 09:37:28 +0200 Message-ID: <083ED85235915A4AAE91081E3CC6148702CBD8@ihbexc1.inconso.de> From: "Hofmann Kai" To: X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Content-Transfer-Encoding: 8bit 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/