|
From: | Paul Eggert |
Subject: | bug#12366: [gnu-prog-discuss] Writing unwritable files |
Date: | Thu, 06 Sep 2012 10:00:34 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120828 Thunderbird/15.0 |
>> If some other process is writing F >> while I run 'sed -i F', F is not replaced atomically. > How not so? For example: echo ac >f sed -i 's/a/b/' f & sed -i 's/c/d/' f wait cat f If 'sed' were truly atomic, then the output of this would always be 'bd'. But it's not.
[Prev in Thread] | Current Thread | [Next in Thread] |