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