[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug in sed
From: |
Davide Brini |
Subject: |
Re: Bug in sed |
Date: |
Tue, 28 Dec 2010 17:33:06 +0000 |
User-agent: |
|
On Tue, 28 Dec 2010 11:40:05 +0100 Rasmus Olsen <address@hidden>
wrote:
> I have found that sed does not respect the write file permissions. It is
> possible to change any file with sed -i as long as the user has write
> permission to the directory and read permission to the file.
Yes, this is because when using -i, sed creates another file; the original
file is never written to. This is documented.
--
D.