This is the mail archive of the
cygwin
mailing list for the Cygwin project.
sed 4.2.1-1 locks files on windows
- From: <cygwin dot com at munub dot e4ward dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 21 Feb 2012 11:58:05 +0100
- Subject: sed 4.2.1-1 locks files on windows
- Reply-to: cygwin dot com at munub dot e4ward dot com
see here: http://stackoverflow.com/questions/9368783/cygwin-bash-sed-locks-my-files
When I change files in cygwin bash with the sed command, the file gets locked.
Reproduce:
Open cmd and cd to non-user directory (f.e. temp)
echo aaa > test.txt
Open in texteditor, add line, try to save => works
%CYGWIN_HOME%\bin\bash -c "sed -i 's/aaa/bbb/' test.txt
In texteditor, add another line and try to save => "Access denied"
--
NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!
Jetzt informieren: http://www.gmx.net/de/go/freephone/
--
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