From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10432 invoked by alias); 21 Feb 2012 10:58:55 -0000 Received: (qmail 10421 invoked by uid 22791); 21 Feb 2012 10:58:54 -0000 X-SWARE-Spam-Status: No, hits=-0.7 required=5.0 tests=BAYES_20,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from e4ward.com (HELO e4ward.com) (70.85.31.73) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 21 Feb 2012 10:58:34 +0000 Received: from localhost ([127.0.0.1] helo=e4ward.com) by e4ward.com with esmtp (Exim 4.69) id 1RznVe-0003jT-5Q for cygwin@cygwin.com; Tue, 21 Feb 2012 06:03:50 -0500 Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by e4ward.com; Tue, 21 Feb 2012 06:03:50 -0500 (EST) Received: (qmail 8183 invoked by uid 0); 21 Feb 2012 10:58:06 -0000 Received: from 91.113.51.106 by www025.gmx.net with HTTP; Tue, 21 Feb 2012 11:58:05 +0100 (CET) Content-Type: text/plain; charset="utf-8" Date: Tue, 21 Feb 2012 10:58:00 -0000 From: Message-ID: <20120221105805.256390@gmx.net> MIME-Version: 1.0 Subject: sed 4.2.1-1 locks files on windows To: cygwin@cygwin.com Content-Transfer-Encoding: 8bit Reply-To: cygwin.com@munub.e4ward.com X-e4ward-RCPT: cygwin-cygwin.com-cygwin.com-munub.e4ward.com-120521-4cf5-5@reply.e4ward.com X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2012-02/txt/msg00613.txt.bz2 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