This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

sed -i causes +S+H


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]