|
From: | Péter |
Subject: | bug#27200: sed happily modifies read-only files. |
Date: | Fri, 2 Jun 2017 17:57:37 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 |
sed happily modifies read-only files. *Modifying* *write-protected* files sound me contradicting..
$ ls -l aa -r--r--r-- 1 un un 4 jún 2 14:56 aa $ cat aa CCC $ sed -ri 's/C/zi/g' aa $ ls -l aa -r--r--r-- 1 un un 7 jún 2 17:54 aa $ cat aa zizizi
[Prev in Thread] | Current Thread | [Next in Thread] |