This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: mv: permission denied - bug
- From: "Hofmann Kai" <KHofmann at inconso dot de>
- To: <cygwin at cygwin dot com>
- Date: Mon, 3 Jul 2006 09:37:28 +0200
- Subject: RE: mv: permission denied - bug
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/