|
From: | Peng Yu |
Subject: | Why sed -i does not respect the w mode? |
Date: | Wed, 28 Dec 2022 18:34:39 -0600 |
Hi, I turned off w of test.txt. But it still can be changed by sed -i. Should sed -i respect the w mode? Thanks. $ echo a >test.txt $ chmod -w test.txt $ sed -i 's/a/A/' test.txt $ cat test.txt A -- Regards, Peng
[Prev in Thread] | Current Thread | [Next in Thread] |