delorie.com/archives/browse.cgi | search |
Message-Id: | <200405110659.i4B6xnMf018859@delorie.com> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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 |
Reply-To: | <fergus AT bonhard DOT uklinux DOT net> |
From: | <fergus AT bonhard DOT uklinux DOT net> |
To: | <cygwin AT cygwin DOT com> |
Cc: | <fergus AT bonhard DOT uklinux DOT net> |
Subject: | sed -i causes +S+H |
Date: | Tue, 11 May 2004 07:55:20 +0100 |
MIME-Version: | 1.0 |
X-UoD-Spam-Score: | -4.7 (----) |
X-UoD-Spam-Report: | -------------------------------------------------- This message has been scanned by a SpamAssassin installation on the spam checking server hughnew at the University of Dundee. Content analysis details: (-4.7 hits, 5.0 required) 0.2 NO_REAL_NAME From: does not include a real name -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] |
X-UoD-Scan-Signature: | 14f7934868515fa94b5e462ffd6b7e8c |
Note-from-DJ: | This may be spam |
Just at the moment sed -i 's/../../g' file1 causes the edited file 'file1' to possess attributes not just +A as one might expect but also +S +H. (This does not happen if you use a different syntax sed 's/../../g' file1 > file2 in which case the edited file 'file2' possesses just +A.) This (sed -i) seems an arbitrary and damaging change to the file's permissions: indeed, if you then try editing file1 using nano, there is a "Error writing file1: Permission denied" error message when an attempt is made to save the file after the editing process is completed. Fergus -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |