delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/02/21/05:59:09

X-Recipient: archive-cygwin AT delorie DOT com
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
Date: Tue, 21 Feb 2012 11:58:05 +0100
From: <cygwin DOT com AT munub DOT e4ward DOT com>
Message-ID: <20120221105805.256390@gmx.net>
MIME-Version: 1.0
Subject: sed 4.2.1-1 locks files on windows
To: cygwin AT cygwin DOT com
Reply-To: cygwin DOT com AT munub DOT e4ward DOT com
X-e4ward-RCPT: cygwin-cygwin DOT com-cygwin DOT com-munub DOT e4ward DOT com-120521-4cf5-5 AT reply DOT e4ward DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019