GNU logs - #13028, boring messages


Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#13028: inplace
Resent-From: Reuben Thomas <rrt@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Thu, 29 Nov 2012 15:24:01 +0000
Resent-Message-ID: <handler.13028.B.13542025988827 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 13028
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: 
To: 13028 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-coreutils <bug-coreutils@HIDDEN>
Received: via spool by submit <at> debbugs.gnu.org id=B.13542025988827
          (code B ref -1); Thu, 29 Nov 2012 15:24:01 +0000
Received: (at submit) by debbugs.gnu.org; 29 Nov 2012 15:23:18 +0000
Received: from localhost ([127.0.0.1]:45326 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Te5xN-0002IJ-F5
	for submit <at> debbugs.gnu.org; Thu, 29 Nov 2012 10:23:17 -0500
Received: from eggs.gnu.org ([208.118.235.92]:34640)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <rrt@HIDDEN>) id 1Te5xK-0002IC-Vl
	for submit <at> debbugs.gnu.org; Thu, 29 Nov 2012 10:23:16 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rrt@HIDDEN>) id 1Te5vI-0005Fx-NG
	for submit <at> debbugs.gnu.org; Thu, 29 Nov 2012 10:21:14 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,HTML_MESSAGE,
	RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:42489)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rrt@HIDDEN>)
	id 1Te5vI-0005Fq-Ju
	for submit <at> debbugs.gnu.org; Thu, 29 Nov 2012 10:21:08 -0500
Received: from eggs.gnu.org ([208.118.235.92]:42811)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rrt@HIDDEN>) id 1Te5v9-0001yA-6z
	for bug-coreutils@HIDDEN; Thu, 29 Nov 2012 10:21:08 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rrt@HIDDEN>) id 1Te5v1-0005Dm-2L
	for bug-coreutils@HIDDEN; Thu, 29 Nov 2012 10:20:59 -0500
Received: from exprod7og115.obsmtp.com ([64.18.2.217]:53673)
	by eggs.gnu.org with smtp (Exim 4.71) (envelope-from <rrt@HIDDEN>)
	id 1Te5v0-0005DZ-NF
	for bug-coreutils@HIDDEN; Thu, 29 Nov 2012 10:20:50 -0500
Received: from mail-wg0-f71.google.com ([74.125.82.71]) (using TLSv1) by
	exprod7ob115.postini.com ([64.18.6.12]) with SMTP
	ID DSNKULd9UBsp5Z/W7+OaRhFG/igo92sxsJDu@HIDDEN;
	Thu, 29 Nov 2012 07:20:50 PST
Received: by mail-wg0-f71.google.com with SMTP id dr13so5394234wgb.6
	for <bug-coreutils@HIDDEN>; Thu, 29 Nov 2012 07:20:48 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=google.com; s=20120113;
	h=mime-version:date:message-id:subject:from:to:content-type
	:x-gm-message-state;
	bh=uIKf2pT5wqQcwt3KhKIzq+vC1/3Wf1KkNf1AS0LqHUM=;
	b=DomHttYTLsPsZCtbNS2AxkKYV8u5AETaxZhjJvkBrvF68ZBnGO83Ab8lWw6J/lNICG
	Q4hab6IWSpjeX/zHtMncGeMdPN/AIDpFqSZddNUCAQKpCsO3Y9xXjk27pDKO/AszrBHC
	/KHtMM2HEtEdzYzGyliIyjZvQNffT9ujlq5ChlbsmG0wTRc6gv5TmE4I1ZthM8KBQs3F
	Yo3NK9R3zhRuz8PAfZw7809gawZrrky0NQr/JV2J2vYv84ioGJ6Sc0AmhkrKBO5UmCIv
	whIPlpAhaURrt8Kux1BJzuH2VX3qzX1eD+ybIQtYnl0oci19aMJjfs4dD143klonJKIJ
	n/LA==
Received: by 10.14.215.194 with SMTP id e42mr50449654eep.32.1354202448146;
	Thu, 29 Nov 2012 07:20:48 -0800 (PST)
MIME-Version: 1.0
Received: by 10.14.215.194 with SMTP id e42mr50449603eep.32.1354202447870;
	Thu, 29 Nov 2012 07:20:47 -0800 (PST)
Received: by 10.14.212.66 with HTTP; Thu, 29 Nov 2012 07:20:47 -0800 (PST)
Date: Thu, 29 Nov 2012 15:20:47 +0000
Message-ID: <CAOnWdog-3wBokdqgZZDaXs=wp8cvn3asTpp3NFmtokohAQ-WJw@HIDDEN>
From: Reuben Thomas <rrt@HIDDEN>
Content-Type: multipart/mixed; boundary=e89a8f923f50dbfad304cfa3d32f
X-Gm-Message-State: ALoCoQmULD5VNtgWlAaZKBq7N/qgkssJKUcgzA/tAeXHwBGYERQBG2V/gZG6qUxl9eJJ93nvGClB3KVqxwon0B4hfxe3aVQ42tzpfqsx5q91NUIur1Bis+2qx+uTgE885g4U2lVDPYW2/d/NRn5Da9CXzrH7OzxZ+939Em5U/dQihQfER9H/tjY=
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 208.118.235.17
X-Spam-Score: -3.5 (---)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.3 (----)

--e89a8f923f50dbfad304cfa3d32f
Content-Type: multipart/alternative; boundary=e89a8f923f50dbface04cfa3d32d

--e89a8f923f50dbface04cfa3d32d
Content-Type: text/plain; charset=ISO-8859-1

On Fri, 14 May 2004 15:53:04 +0600 (YEKST), Victor Porton offered his handy
"inplace" script to coreutils, which runs a filter on a file in-place. A
couple of replies said there was no need for this as one could do in-place
editing with perl or sed, but I think that was misguided, as the point of
inplace is that it works with any filter. I just used it with xml_grep:

inplace "xml_grep --exclude 'ul[@class=\"toc\"]' \"\$IN\" > \"\$OUT\""
"$book.xhtml"

I attach an updated version of inplace with some bashisms and typos fixed.

-- 
http://rrt.sc3d.org

--e89a8f923f50dbface04cfa3d32d
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On=A0Fri, 14 May 2004 15:53:04 +0600 (YEKST), Victor Porton offered his han=
dy &quot;inplace&quot; script to coreutils, which runs a filter on a file i=
n-place. A couple of replies said there was no need for this as one could d=
o in-place editing with perl or sed, but I think that was misguided, as the=
 point of inplace is that it works with any filter. I just used it with xml=
_grep:<div>
<br></div><div><div>inplace &quot;xml_grep --exclude &#39;ul[@class=3D\&quo=
t;toc\&quot;]&#39; \&quot;\$IN\&quot; &gt; \&quot;\$OUT\&quot;&quot; &quot;=
$book.xhtml&quot;</div><div><br></div><div>I attach an updated version of i=
nplace with some bashisms and typos fixed.</div>
<div><br></div>-- <br><a href=3D"http://rrt.sc3d.org">http://rrt.sc3d.org</=
a><br>
</div>

--e89a8f923f50dbface04cfa3d32d--
--e89a8f923f50dbfad304cfa3d32f
Content-Type: application/octet-stream; name=inplace
Content-Disposition: attachment; filename=inplace
Content-Transfer-Encoding: base64
X-Attachment-Id: f_ha415e8h0

IyEvYmluL3NoCgojIENvcHlyaWdodCAoYykgVmljdG9yIFBvcnRvbiAyMDA0LgojIEV4dHJlbWUg
Q29kZSBTb2Z0d2FyZSAoaHR0cDovL2V4LWNvZGUuY29tKSAtIFZFUlkgQ0hFQVAgY3VzdG9tIHNv
ZnR3YXJlLgojIEJhc2hpc21zICYgdHlwb3MgZml4ZWQgYnkgUmV1YmVuIFRob21hcwoKdXNhZ2Vf
bXNnPSdpbnBsYWNlIFstdmluXSBbLXMgPHN1ZmZpeD5dIFstZCA8ZGlmZj5dICJjbWQgXCRJTiBc
JE9VVCIgPGZpbGU+IFs8ZmlsZT4gLi4uXScKCnVzYWdlICgpIHsKICAgIGVjaG8gIiR1c2FnZV9t
c2ciCiAgICBleGl0IDEKfQoKaGVscCAoKSB7CiAgICBlY2hvICIkdXNhZ2VfbXNnIgogICAgY2F0
IDw8IEVPRgoKUGVyZm9ybXMgaW5wbGFjZSB0cmFuc2Zvcm1hdGlvbiBvZiBmaWxlKHMpLgogIC0t
aGVscCAgICAgICBTaG93IGhlbHAKICAtLXZlcnNpb24gICAgU2hvdyB2ZXJzaW9uIGluZm8KICAt
aSAgICAgICAgICAgSW50ZXJhY3RpdmVseSBhc2sgY29uZmlybWF0aW9uCiAgLW4gICAgICAgICAg
IERvbid0IGJhY2t1cAogIC1zIDxzdWZmaXg+ICBCYWNrdXAgc3VmZml4IChkZWZhdWx0IC5iYWsp
CiAgLWQgPGRpZmZjbWQ+IENvbXBhcmlzb24gY29tbWFuZCAoZGVmYXVsdCAiY21wIC1zIiwgY2Fu
IGJlIGUuZy4gImRpZmYgLXUiKQogIC12ICAgICAgICAgICBCZSB2ZXJib3NlCiAgCkV4YW1wbGU6
IGlucGxhY2UgLXYgInNlZCAtZSBzL0pvaG4vUGF1bC9nIFxcXCRJTiA+IFxcXCRPVVQiIGZpbGUu
dHh0CgotLQpFeHRyZW1lIENvZGUgKGh0dHA6Ly93d3cuZXgtY29kZS5jb20sIHN1cHBvcnRAZXgt
Y29kZS5jb20pClZFUlkgQ0hFQVAgY3VzdG9tIHNvZnR3YXJlLgpFT0YKICAgIGV4aXQgMDsKfQoK
Y2FzZSAiJDEiIGluCiAgICAtaHwtLWhlbHApIGhlbHA7OwogICAgLS12ZXJzaW9uKSBlY2hvICJp
bnBsYWNlIDEuMC4xIGJ5IEV4dHJlbWUgQ29kZSAoaHR0cDovL2V4LWNvZGUuY29tKS4iOyBleGl0
IDE7CmVzYWMKCmZpbGU9IiIKc3VmZml4PSIuYmFrIgpiYWNrdXA9dHJ1ZQpjb25maXJtPWZhbHNl
CnZlcmJvc2U9ZmFsc2UKZGlmZj0iY21wIC1zIgoKd2hpbGUgdGVzdCAkIyAtZ3QgMTsgZG8KICAg
IGNhc2UgIiQxIiBpbgogICAgICAgIC12KSB2ZXJib3NlPXRydWUKICAgICAgICAgICAgOzsKICAg
ICAgICAtaSkgY29uZmlybT10cnVlCiAgICAgICAgICAgIDs7CiAgICAgICAgLW4pIGJhY2t1cD1m
YWxzZQogICAgICAgICAgICA7OwogICAgICAgIC1zKSBzdWZmaXg9IiQyIjsgc2hpZnQKICAgICAg
ICAgICAgaWYgdGVzdCAteiAiJHN1ZmZpeCI7IHRoZW4KICAgICAgICAgICAgICAgIGVjaG8gIlN1
ZmZpeCBjYW4ndCBiZSBlbXB0eSIgPiYyCiAgICAgICAgICAgICAgICBleGl0IDEKICAgICAgICAg
ICAgZmkKICAgICAgICAgICAgOzsKICAgICAgICAtZCkgZGlmZj0iJDIiOyBzaGlmdAogICAgICAg
ICAgICBpZiB0ZXN0IC16ICIkZGlmZiI7IHRoZW4KICAgICAgICAgICAgICAgIGVjaG8gIkRpZmYg
Y29tbWFuZCBjYW4ndCBiZSBlbXB0eSIgPiYyCiAgICAgICAgICAgICAgICBleGl0IDEKICAgICAg
ICAgICAgZmkKICAgICAgICAgICAgOzsKICAgICAgICAtKikgdXNhZ2UKICAgICAgICAgICAgOzsK
ICAgICAgICAqKSAgY21kPSIkMSI7IHNoaWZ0CiAgICAgICAgICAgIGJyZWFrCiAgICAgICAgICAg
IDs7CiAgICBlc2FjCiAgICBzaGlmdApkb25lCgppZiB0ZXN0IC16ICIkY21kIiB8fCB0ZXN0ICQj
IC1sdCAxOyB0aGVuIHVzYWdlOyBmaQoKT1VUPWB0ZW1wZmlsZSAtcyAudG1wYAoKd2hpbGUgdGVz
dCAkIyAtZ2UgMTsgZG8KICAgIGZpbGU9JDEKICAgIElOPSIkZmlsZSIKICAgIGlmICEgdGVzdCAt
ZiAiJElOIjsgdGhlbgogICAgICAgIGVjaG8gIkZpbGUgJElOIGRvZXNuJ3QgZXhpc3QhIiA+JjIK
ICAgICAgICBleGl0IDIKICAgIGZpCiAgICBpZiB0ZXN0ICRiYWNrdXAgPSB0cnVlOyB0aGVuCiAg
ICAgICAgY3AgIiRJTiIgIiRJTiRzdWZmaXgiIHx8IGV4aXQgMgogICAgZmkKICAgIGV4cG9ydCBJ
TiBPVVQKICAgIGlmICEgc2ggLWMgIiRjbWQiOyB0aGVuCiAgICAgICAgc3RhdHVzPSQ/CiAgICAg
ICAgZWNobyAiKiogQ29tbWFuZCBmYWlsZWQiID4mMgogICAgICAgIGlmIHRlc3QgLWYgIiRPVVQi
OyB0aGVuIHJtICIkT1VUIjsgZmkKICAgICAgICBleGl0IDIKICAgIGZpCiAgICBpZiAhIHRlc3Qg
LWYgIiRPVVQiOyB0aGVuCiAgICAgICAgZWNobyAiVHJhbnNmb3JtYXRpb24gb2YgZmlsZSAkZmls
ZSBpc24ndCBjcmVhdGVkISIgPiYyCiAgICAgICAgY29udGludWUKICAgIGZpCiAgICAkZGlmZiAt
cyAiJElOIiAiJE9VVCIKICAgIGNhc2UgJD8gaW4KICAgICAgICAwKSBpZiB0ZXN0ICR2ZXJib3Nl
ID0gdHJ1ZTsgdGhlbiBlY2hvICIkZmlsZSB1bmNoYW5nZWQuIjsgZmkKICAgICAgICAgICA7Owog
ICAgICAgIDEpIGlmIHRlc3QgJGNvbmZpcm0gPSB0cnVlOyB0aGVuCiAgICAgICAgICAgICAgIG92
ZXJ3cml0ZT0iIgogICAgICAgICAgICAgICB3aGlsZSB0ZXN0IC16ICRvdmVyd3JpdGU7IGRvCiAg
ICAgICAgICAgICAgICAgICBlY2hvICJPdmVyd3JpdGU/IFxjIjsgcmVhZAogICAgICAgICAgICAg
ICAgICAgY2FzZSAkUkVQTFkgaW4KICAgICAgICAgICAgICAgICAgICAgICB5fFl8eWVzfHRydWV8
dHxUfFllc3xUcnVlfFlFU3xUUlVFfDEpCiAgICAgICAgICAgICAgICAgICAgICAgICAgIG92ZXJ3
cml0ZT10cnVlICA7OwogICAgICAgICAgICAgICAgICAgICAgIG58Tnxub3xmYWxzZXxmfEZ8Tm98
RmFsc2V8Tk98RkFMU0V8MCkKICAgICAgICAgICAgICAgICAgICAgICAgICAgb3ZlcndyaXRlPWZh
bHNlIDs7CiAgICAgICAgICAgICAgICAgICBlc2FjCiAgICAgICAgICAgICAgIGRvbmUKICAgICAg
ICAgICAgICAgaWYgdGVzdCAkb3ZlcndyaXRlID0gdHJ1ZTsgdGhlbgogICAgICAgICAgICAgICAg
ICAgbXYgIiRPVVQiICIkSU4iIHx8IHJtICIkT1VUIiAjIGZvciB0aGUgY2FzZSBvZiBub3Qgd3Jp
dGFibGUgJElOCiAgICAgICAgICAgICAgIGVsc2UKICAgICAgICAgICAgICAgICAgIHJtICIkT1VU
IgogICAgICAgICAgICAgICBmaQogICAgICAgICAgIGVsc2UKICAgICAgICAgICAgICAgaWYgdGVz
dCAkdmVyYm9zZSA9IHRydWU7IHRoZW4gZWNobyAiJGZpbGUgY2hhbmdlZC4iOyBmaQogICAgICAg
ICAgICAgICBtdiAiJE9VVCIgIiRJTiIgfHwgcm0gIiRPVVQiICMgZm9yIHRoZSBjYXNlIG9mIG5v
dCB3cml0YWJsZSAkSU4KICAgICAgICAgICBmaQogICAgICAgICAgIDs7CiAgICAgICAgMikgZWNo
byAiQ2FuJ3QgY29tcGFyZSBmaWxlcyAkSU4gYW5kICRPVVQiID4mMgogICAgICAgICAgIHJtICIk
T1VUIgogICAgICAgICAgIGV4aXQgMgogICAgICAgICAgIDs7CiAgICBlc2FjCiAgICBzaGlmdApk
b25lCg==
--e89a8f923f50dbfad304cfa3d32f--




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.428 (Entity 5.428)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Reuben Thomas <rrt@HIDDEN>
Subject: bug#13028: Acknowledgement (inplace)
Message-ID: <handler.13028.B.13542025988827.ack <at> debbugs.gnu.org>
References: <CAOnWdog-3wBokdqgZZDaXs=wp8cvn3asTpp3NFmtokohAQ-WJw@HIDDEN>
X-Gnu-PR-Message: ack 13028
X-Gnu-PR-Package: coreutils
Reply-To: 13028 <at> debbugs.gnu.org
Date: Thu, 29 Nov 2012 15:24:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-coreutils@HIDDEN

If you wish to submit further information on this problem, please
send it to 13028 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
13028: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D13028
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#13028: inplace
Resent-From: Ruediger Meier <sweet_f_a@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Thu, 29 Nov 2012 15:35:01 +0000
Resent-Message-ID: <handler.13028.B.13542032919842 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 13028
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: 
To: 13028 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-coreutils@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.13542032919842
          (code B ref -1); Thu, 29 Nov 2012 15:35:01 +0000
Received: (at submit) by debbugs.gnu.org; 29 Nov 2012 15:34:51 +0000
Received: from localhost ([127.0.0.1]:45332 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Te68W-0002Ye-3W
	for submit <at> debbugs.gnu.org; Thu, 29 Nov 2012 10:34:50 -0500
Received: from eggs.gnu.org ([208.118.235.92]:35873)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <sweet_f_a@HIDDEN>) id 1Te68S-0002YV-3c
	for submit <at> debbugs.gnu.org; Thu, 29 Nov 2012 10:34:45 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <sweet_f_a@HIDDEN>) id 1Te66O-0008Lc-Un
	for submit <at> debbugs.gnu.org; Thu, 29 Nov 2012 10:32:43 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:52018)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <sweet_f_a@HIDDEN>) id 1Te66O-0008Ko-K5
	for submit <at> debbugs.gnu.org; Thu, 29 Nov 2012 10:32:36 -0500
Received: from eggs.gnu.org ([208.118.235.92]:50646)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <sweet_f_a@HIDDEN>) id 1Te66N-0007oX-Dr
	for bug-coreutils@HIDDEN; Thu, 29 Nov 2012 10:32:36 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <sweet_f_a@HIDDEN>) id 1Te66H-0008HA-Ah
	for bug-coreutils@HIDDEN; Thu, 29 Nov 2012 10:32:35 -0500
Received: from mailout-de.gmx.net ([213.165.64.23]:44961)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <sweet_f_a@HIDDEN>) id 1Te66H-0008Gr-07
	for bug-coreutils@HIDDEN; Thu, 29 Nov 2012 10:32:29 -0500
Received: (qmail invoked by alias); 29 Nov 2012 15:32:26 -0000
Received: from p5098db61.dip0.t-ipconnect.de (EHLO zappa.ga.local)
	[80.152.219.97]
	by mail.gmx.net (mp071) with SMTP; 29 Nov 2012 16:32:26 +0100
X-Authenticated: #11967524
X-Provags-ID: V01U2FsdGVkX1+r5wEO8Qar/6W8ExzXAN+jlhrGRb/RgT9CAe1MGr
	DAgKlWUvIEJphV
From: Ruediger Meier <sweet_f_a@HIDDEN>
Date: Thu, 29 Nov 2012 16:32:25 +0100
User-Agent: KMail/1.9.10
References: <CAOnWdog-3wBokdqgZZDaXs=wp8cvn3asTpp3NFmtokohAQ-WJw@HIDDEN>
In-Reply-To: <CAOnWdog-3wBokdqgZZDaXs=wp8cvn3asTpp3NFmtokohAQ-WJw@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="utf-8"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <201211291632.25608.sweet_f_a@HIDDEN>
X-Y-GMX-Trusted: 0
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 208.118.235.17
X-Spam-Score: -4.2 (----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.2 (----)

On Thursday 29 November 2012, Reuben Thomas wrote:
> On Fri, 14 May 2004 15:53:04 +0600 (YEKST), Victor Porton offered his
> handy "inplace" script to coreutils, which runs a filter on a file
> in-place. A couple of replies said there was no need for this as one
> could do in-place editing with perl or sed, but I think that was
> misguided, as the point of inplace is that it works with any filter.
> I just used it with xml_grep:
>
> inplace "xml_grep --exclude 'ul[@class=\"toc\"]' \"\$IN\" >
> \"\$OUT\"" "$book.xhtml"
>
> I attach an updated version of inplace with some bashisms and typos
> fixed.

You may also have a look at sponge from moreutils project
http://linux.die.net/man/1/sponge
http://joeyh.name/code/moreutils/


cu,
Rudi




Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#13028: inplace
Resent-From: =?UTF-8?Q?P=C3=A1draig?= Brady <P@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Thu, 29 Nov 2012 15:38:01 +0000
Resent-Message-ID: <handler.13028.B13028.135420344910070 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 13028
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: 
To: Reuben Thomas <rrt@HIDDEN>
Cc: 13028 <at> debbugs.gnu.org, "David A. Wheeler" <dwheeler@HIDDEN>
Received: via spool by 13028-submit <at> debbugs.gnu.org id=B13028.135420344910070
          (code B ref 13028); Thu, 29 Nov 2012 15:38:01 +0000
Received: (at 13028) by debbugs.gnu.org; 29 Nov 2012 15:37:29 +0000
Received: from localhost ([127.0.0.1]:45337 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Te6B0-0002cG-32
	for submit <at> debbugs.gnu.org; Thu, 29 Nov 2012 10:37:27 -0500
Received: from mx1.redhat.com ([209.132.183.28]:62599)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <P@HIDDEN>) id 1Te6Av-0002c4-83
	for 13028 <at> debbugs.gnu.org; Thu, 29 Nov 2012 10:37:19 -0500
Received: from int-mx02.intmail.prod.int.phx2.redhat.com
	(int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12])
	by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qATFZCMm001934
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Thu, 29 Nov 2012 10:35:15 -0500
Received: from [10.36.116.83] (ovpn-116-83.ams2.redhat.com [10.36.116.83])
	by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
	id qATFZ9Ke003538
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Thu, 29 Nov 2012 10:35:11 -0500
Message-ID: <50B780AD.6080704@HIDDEN>
Date: Thu, 29 Nov 2012 15:35:09 +0000
From: =?UTF-8?Q?P=C3=A1draig?= Brady <P@HIDDEN>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:13.0) Gecko/20120615 Thunderbird/13.0.1
MIME-Version: 1.0
References: <CAOnWdog-3wBokdqgZZDaXs=wp8cvn3asTpp3NFmtokohAQ-WJw@HIDDEN>
In-Reply-To: <CAOnWdog-3wBokdqgZZDaXs=wp8cvn3asTpp3NFmtokohAQ-WJw@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by mx1.redhat.com id
	qATFZCMm001934
X-Spam-Score: -4.2 (----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.2 (----)

On 11/29/2012 03:20 PM, Reuben Thomas wrote:
> On Fri, 14 May 2004 15:53:04 +0600 (YEKST), Victor Porton offered his h=
andy "inplace" script to coreutils, which runs a filter on a file in-plac=
e. A couple of replies said there was no need for this as one could do in=
-place editing with perl or sed, but I think that was misguided, as the p=
oint of inplace is that it works with any filter. I just used it with xml=
_grep:
>
> inplace "xml_grep --exclude 'ul[@class=3D\"toc\"]' \"\$IN\" > \"\$OUT\"=
" "$book.xhtml"
>
> I attach an updated version of inplace with some bashisms and typos fix=
ed.
>

I definitely think this is worthwhile.
In fact I mostly finished such a script here
that would handle all the atomic, backup, permissions, etc.:
http://lists.gnu.org/archive/html/bug-coreutils/2010-03/msg00213.html
See also: http://www.pixelbeat.org/docs/unix_file_replacement.html

Where to put such a script is an issue.
We were thinking of a contrib/ folder for higher level
scripts like this that could leverage coreutils/
Translations in the shell script was one thing that was
I was wondering about, which I need to look at.

Also I was wondering what to call it. rp, inplace, replace, ...
and in the meantime I noticed David Wheeler proposed much the same thing
with the "rewrite" util:
http://permalink.gmane.org/gmane.comp.standards.posix.austin.general/5348

rewrite is my favorite name so far.

I'll work on this script after I finish a pending
SELinux patchset I'm working on.

thanks,
P=E1draig.




Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#13028: inplace
Resent-From: =?UTF-8?Q?P=C3=A1draig?= Brady <P@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Thu, 29 Nov 2012 15:39:02 +0000
Resent-Message-ID: <handler.13028.B13028.135420353510214 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 13028
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: 
To: Ruediger Meier <sweet_f_a@HIDDEN>
Cc: 13028 <at> debbugs.gnu.org
Received: via spool by 13028-submit <at> debbugs.gnu.org id=B13028.135420353510214
          (code B ref 13028); Thu, 29 Nov 2012 15:39:02 +0000
Received: (at 13028) by debbugs.gnu.org; 29 Nov 2012 15:38:55 +0000
Received: from localhost ([127.0.0.1]:45341 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Te6CV-0002eh-44
	for submit <at> debbugs.gnu.org; Thu, 29 Nov 2012 10:38:55 -0500
Received: from mx1.redhat.com ([209.132.183.28]:1965)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <P@HIDDEN>) id 1Te6CR-0002eW-Jw
	for 13028 <at> debbugs.gnu.org; Thu, 29 Nov 2012 10:38:53 -0500
Received: from int-mx01.intmail.prod.int.phx2.redhat.com
	(int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11])
	by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qATFao7p002474
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Thu, 29 Nov 2012 10:36:50 -0500
Received: from [10.36.116.83] (ovpn-116-83.ams2.redhat.com [10.36.116.83])
	by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
	id qATFamk4013110
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Thu, 29 Nov 2012 10:36:50 -0500
Message-ID: <50B78110.9040608@HIDDEN>
Date: Thu, 29 Nov 2012 15:36:48 +0000
From: =?UTF-8?Q?P=C3=A1draig?= Brady <P@HIDDEN>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:13.0) Gecko/20120615 Thunderbird/13.0.1
MIME-Version: 1.0
References: <CAOnWdog-3wBokdqgZZDaXs=wp8cvn3asTpp3NFmtokohAQ-WJw@HIDDEN>
	<201211291632.25608.sweet_f_a@HIDDEN>
In-Reply-To: <201211291632.25608.sweet_f_a@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by mx1.redhat.com id
	qATFao7p002474
X-Spam-Score: -4.2 (----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.0 (-----)

On 11/29/2012 03:32 PM, Ruediger Meier wrote:
> On Thursday 29 November 2012, Reuben Thomas wrote:
>> On Fri, 14 May 2004 15:53:04 +0600 (YEKST), Victor Porton offered his
>> handy "inplace" script to coreutils, which runs a filter on a file
>> in-place. A couple of replies said there was no need for this as one
>> could do in-place editing with perl or sed, but I think that was
>> misguided, as the point of inplace is that it works with any filter.
>> I just used it with xml_grep:
>>
>> inplace "xml_grep --exclude 'ul[@class=3D\"toc\"]' \"\$IN\" >
>> \"\$OUT\"" "$book.xhtml"
>>
>> I attach an updated version of inplace with some bashisms and typos
>> fixed.
>
> You may also have a look at sponge from moreutils project
> http://linux.die.net/man/1/sponge
> http://joeyh.name/code/moreutils/

sponge is good, but doesn't quite cut it.
See point 6 at: http://www.pixelbeat.org/docs/unix_file_replacement.html

thanks,
P=C3=A1draig.




Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#13028: inplace
Resent-From: Reuben Thomas <rrt@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Thu, 29 Nov 2012 19:06:02 +0000
Resent-Message-ID: <handler.13028.B13028.135421593332642 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 13028
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: 
To: =?UTF-8?Q?P=C3=A1draig?= Brady <P@HIDDEN>
Cc: 13028 <at> debbugs.gnu.org, "David A. Wheeler" <dwheeler@HIDDEN>
Received: via spool by 13028-submit <at> debbugs.gnu.org id=B13028.135421593332642
          (code B ref 13028); Thu, 29 Nov 2012 19:06:02 +0000
Received: (at 13028) by debbugs.gnu.org; 29 Nov 2012 19:05:33 +0000
Received: from localhost ([127.0.0.1]:45538 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Te9QP-0008UN-CM
	for submit <at> debbugs.gnu.org; Thu, 29 Nov 2012 14:05:33 -0500
Received: from exprod7og108.obsmtp.com ([64.18.2.169]:39772)
	by debbugs.gnu.org with smtp (Exim 4.72)
	(envelope-from <rrt@HIDDEN>) id 1Te9QJ-0008UA-4k
	for 13028 <at> debbugs.gnu.org; Thu, 29 Nov 2012 14:05:27 -0500
Received: from mail-pb0-f72.google.com ([209.85.160.72]) (using TLSv1) by
	exprod7ob108.postini.com ([64.18.6.12]) with SMTP
	ID DSNKULexcxRfyEZKBy+reTsDI7qgtknpsdnn@HIDDEN;
	Thu, 29 Nov 2012 11:03:21 PST
Received: by mail-pb0-f72.google.com with SMTP id wz7so18364767pbc.3
	for <13028 <at> debbugs.gnu.org>; Thu, 29 Nov 2012 11:03:15 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=google.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type:x-gm-message-state;
	bh=SxwO8n96YvcMQLJ5aNJz+JNUnwCIl5PAL+ubIi61g4o=;
	b=fNeEN9D464PlbvkpI14TNaW1Z36QH2BXoGB51OI/3kWmZPcgqS7zg6QFKSNiy2s7Db
	V7U9nGfANTVeqToS3J8Jt6CdvTgg42JNmtWYg6KzpHKFq/2UC9Qtwq1c8RUqlIwcAoKG
	URRZYK5pids0G1qdFAOg3IZnEp4y/pRpHVnSXtBU8QkSpUSECTNj8UmmXrZV+jtIDN1Z
	EECv+huxwdcaPALA0X66CPoWIcFO83wmZWhKQkzzV90JJrGq8cmD3K441r8a61O27OlU
	aWerD4uiXCRFBC21wFKB8DcmSQL/Ojbb0ZqtMKXH8Kzkjx5fTnOT3EYLSzlVrEEbaIdK
	QYjw==
Received: by 10.68.234.98 with SMTP id ud2mr71115641pbc.136.1354215795457;
	Thu, 29 Nov 2012 11:03:15 -0800 (PST)
MIME-Version: 1.0
Received: by 10.68.234.98 with SMTP id ud2mr71115623pbc.136.1354215795255;
	Thu, 29 Nov 2012 11:03:15 -0800 (PST)
Received: by 10.68.239.229 with HTTP; Thu, 29 Nov 2012 11:03:14 -0800 (PST)
In-Reply-To: <50B780AD.6080704@HIDDEN>
References: <CAOnWdog-3wBokdqgZZDaXs=wp8cvn3asTpp3NFmtokohAQ-WJw@HIDDEN>
	<50B780AD.6080704@HIDDEN>
Date: Thu, 29 Nov 2012 19:03:14 +0000
Message-ID: <CAOnWdojwq2-OsujxZvuSpb1fc2_b3Z4-A57XTQ0Sg37scBiHhw@HIDDEN>
From: Reuben Thomas <rrt@HIDDEN>
Content-Type: multipart/alternative; boundary=047d7b33cf6a6ce89c04cfa6ef3b
X-Gm-Message-State: ALoCoQnfIal5Qda6Cob434yOfxGbecypQSnG15Q3un2Wxt0fW/a7MeQ3gJb2qWWpLgUCqHmNfFnmADNudAp6AwrEdt0P9OBC581n5PrY25vi7/1pJTT1xnBeg4y1wfl5hL33A2rggR74HD9H5W0kHm92TLoafxA9mZDKCuOVKEgr7wQJvfsIZ/M=
X-Spam-Score: -1.5 (-)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.5 (-)

--047d7b33cf6a6ce89c04cfa6ef3b
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 29 November 2012 15:35, P=E1draig Brady <P@HIDDEN> wrote:

>
> I definitely think this is worthwhile.
>

Great!


> Where to put such a script is an issue.
> We were thinking of a contrib/ folder for higher level
> scripts like this that could leverage coreutils/
> Translations in the shell script was one thing that was
> I was wondering about, which I need to look at.
>

Is there a reason it can't be shipped so it'll install as part of coreutils=
?


> rewrite is my favorite name so far.
>

It sounds better, but I'd favour "inplace" as it's the term used by most
utilities, like Perl and sed, that already provide such a built-in
facility, and is hence more easily discovered.


> I'll work on this script after I finish a pending
> SELinux patchset I'm working on.


Great!

--=20
http://rrt.sc3d.org

--047d7b33cf6a6ce89c04cfa6ef3b
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 29 November 2012 15:35, P=E1draig Brady <span dir=3D"ltr">&lt;<a href=3D=
"mailto:P@HIDDEN" target=3D"_blank">P@HIDDEN</a>&gt;</span>=
 wrote:<br><div class=3D"gmail_extra"><div class=3D"gmail_quote"><blockquot=
e class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc sol=
id;padding-left:1ex">
<br>
I definitely think this is worthwhile.<br></blockquote><div><br></div><div>=
Great!</div><div>=A0</div><blockquote class=3D"gmail_quote" style=3D"margin=
:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Where to put such =
a script is an issue.<br>

We were thinking of a contrib/ folder for higher level<br>
scripts like this that could leverage coreutils/<br>
Translations in the shell script was one thing that was<br>
I was wondering about, which I need to look at.<br></blockquote><div><br></=
div><div>Is there a reason it can&#39;t be shipped so it&#39;ll install as =
part of coreutils?</div><div>=A0</div><blockquote class=3D"gmail_quote" sty=
le=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
rewrite is my favorite name so far.<br></blockquote><div><br></div><div>It =
sounds better, but I&#39;d favour &quot;inplace&quot; as it&#39;s the term =
used by most utilities, like Perl and sed, that already provide such a buil=
t-in facility, and is hence more easily discovered.</div>
<div>=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;=
border-left:1px #ccc solid;padding-left:1ex">
I&#39;ll work on this script after I finish a pending<br>
SELinux patchset I&#39;m working on.</blockquote><div><br></div><div>Great!=
</div></div><div><br></div>-- <br><a href=3D"http://rrt.sc3d.org">http://rr=
t.sc3d.org</a><br>
</div>

--047d7b33cf6a6ce89c04cfa6ef3b--




Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#13028: inplace
Resent-From: =?UTF-8?Q?P=C3=A1draig?= Brady <P@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Thu, 29 Nov 2012 19:19:01 +0000
Resent-Message-ID: <handler.13028.B13028.13542167191400 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 13028
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: 
To: Reuben Thomas <rrt@HIDDEN>
Cc: 13028 <at> debbugs.gnu.org, "David A. Wheeler" <dwheeler@HIDDEN>
Received: via spool by 13028-submit <at> debbugs.gnu.org id=B13028.13542167191400
          (code B ref 13028); Thu, 29 Nov 2012 19:19:01 +0000
Received: (at 13028) by debbugs.gnu.org; 29 Nov 2012 19:18:39 +0000
Received: from localhost ([127.0.0.1]:45559 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Te9d4-0000MS-84
	for submit <at> debbugs.gnu.org; Thu, 29 Nov 2012 14:18:38 -0500
Received: from mx1.redhat.com ([209.132.183.28]:37408)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <P@HIDDEN>) id 1Te9cx-0000ME-UH
	for 13028 <at> debbugs.gnu.org; Thu, 29 Nov 2012 14:18:32 -0500
Received: from int-mx12.intmail.prod.int.phx2.redhat.com
	(int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25])
	by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qATJGPEi009471
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Thu, 29 Nov 2012 14:16:25 -0500
Received: from [10.36.116.83] (ovpn-116-83.ams2.redhat.com [10.36.116.83])
	by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP
	id qATJGNO4007176
	(version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO);
	Thu, 29 Nov 2012 14:16:24 -0500
Message-ID: <50B7B486.60401@HIDDEN>
Date: Thu, 29 Nov 2012 19:16:22 +0000
From: =?UTF-8?Q?P=C3=A1draig?= Brady <P@HIDDEN>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:13.0) Gecko/20120615 Thunderbird/13.0.1
MIME-Version: 1.0
References: <CAOnWdog-3wBokdqgZZDaXs=wp8cvn3asTpp3NFmtokohAQ-WJw@HIDDEN>
	<50B780AD.6080704@HIDDEN>
	<CAOnWdojwq2-OsujxZvuSpb1fc2_b3Z4-A57XTQ0Sg37scBiHhw@HIDDEN>
In-Reply-To: <CAOnWdojwq2-OsujxZvuSpb1fc2_b3Z4-A57XTQ0Sg37scBiHhw@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by mx1.redhat.com id
	qATJGPEi009471
X-Spam-Score: -4.2 (----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.2 (----)

On 11/29/2012 07:03 PM, Reuben Thomas wrote:
> On 29 November 2012 15:35, P=E1draig Brady <P@HIDDEN> wrote:
>
>>
>> I definitely think this is worthwhile.
>>
>
> Great!
>
>
>> Where to put such a script is an issue.
>> We were thinking of a contrib/ folder for higher level
>> scripts like this that could leverage coreutils/
>> Translations in the shell script was one thing that was
>> I was wondering about, which I need to look at.
>>
>
> Is there a reason it can't be shipped so it'll install as part of coreu=
tils?

Well contrib/ in upstream to be installed in standard locations.

>> rewrite is my favorite name so far.
>>
>
> It sounds better, but I'd favour "inplace" as it's the term used by mos=
t
> utilities, like Perl and sed, that already provide such a built-in
> facility, and is hence more easily discovered.

Previous notes on naming:
http://lists.gnu.org/archive/html/bug-coreutils/2010-03/msg00238.html

"rewrite" is more descriptive as a verb as to what is actually happening.
We can finalize on the naming anyway when we have the implementation sort=
ed.

thanks,
P=E1draig.




Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#13028: inplace
Resent-From: "David A. Wheeler" <dwheeler@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Fri, 30 Nov 2012 13:54:01 +0000
Resent-Message-ID: <handler.13028.B13028.135428360817827 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 13028
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: 
To: P@HIDDEN
Cc: 13028 <at> debbugs.gnu.org, rrt@HIDDEN
Reply-To: dwheeler@HIDDEN
Received: via spool by 13028-submit <at> debbugs.gnu.org id=B13028.135428360817827
          (code B ref 13028); Fri, 30 Nov 2012 13:54:01 +0000
Received: (at 13028) by debbugs.gnu.org; 30 Nov 2012 13:53:28 +0000
Received: from localhost ([127.0.0.1]:46393 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TeR20-0004dT-19
	for submit <at> debbugs.gnu.org; Fri, 30 Nov 2012 08:53:28 -0500
Received: from aibo.runbox.com ([91.220.196.211]:57453)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <dwheeler@HIDDEN>) id 1TeR1u-0004dJ-CV
	for 13028 <at> debbugs.gnu.org; Fri, 30 Nov 2012 08:53:24 -0500
Received: from [10.9.9.131] (helo=fenris.runbox.com)
	by bars.runbox.com with esmtp (Exim 4.71)
	(envelope-from <dwheeler@HIDDEN>)
	id 1TeQzq-0006kh-Dl; Fri, 30 Nov 2012 14:51:14 +0100
Received: from mail by fenris.runbox.com with local  (Exim 4.50)
	id 1TeQzs-0005qD-1Q; Fri, 30 Nov 2012 14:51:16 +0100
Content-Type: text/plain; charset="iso-8859-15"
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Received: from [66.170.239.204] by secure.runbox.com with http
	(uid:258406) (RMM 4.0); Fri, 30 Nov 2012 13:51:16 GMT
From: "David A. Wheeler" <dwheeler@HIDDEN>
Date: Fri, 30 Nov 2012 08:51:16 -0500 (EST)
X-Mailer: RMM
References: <CAOnWdog-3wBokdqgZZDaXs=wp8cvn3asTpp3NFmtokohAQ-WJw@HIDDEN>
	<50B780AD.6080704@HIDDEN>
In-Reply-To: <50B780AD.6080704@HIDDEN>
Message-Id: <E1TeQzs-0005qD-1Q@HIDDEN>
X-Spam-Score: 0.1 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: 0.1 (/)

> On 11/29/2012 03:20 PM, Reuben Thomas wrote:
> > On Fri, 14 May 2004 15:53:04 +0600 (YEKST), Victor Porton offered his h=
andy "inplace" script to coreutils, which runs a filter on a file in-place.=
..

P=E1draig Brady <P@HIDDEN> said:
> I definitely think this is worthwhile.
> In fact I mostly finished such a script here
> that would handle all the atomic, backup, permissions, etc.:
> http://lists.gnu.org/archive/html/bug-coreutils/2010-03/msg00213.html
> See also: http://www.pixelbeat.org/docs/unix_file_replacement.html
...
> Also I was wondering what to call it. rp, inplace, replace, ...
> and in the meantime I noticed David Wheeler proposed much the same thing
> with the "rewrite" util:
> http://permalink.gmane.org/gmane.comp.standards.posix.austin.general/5348
...
> I'll work on this script after I finish a pending
> SELinux patchset I'm working on.

I'm delighted to hear that people are working this... thank you!

A request: Please make sure you include single-letter flags for key options=
; that'll help get it into the POSIX spec.  People are more likely to use t=
ools like these if their interface is "available everywhere", and I think g=
etting it (eventually) into the POSIX spec would help make that happen.

Also, please maximally steal useful syntax/examples/ideas from:
 http://permalink.gmane.org/gmane.comp.standards.posix.austin.general/5348
My hope is that this in-place edit tool will just "do the job well".

--- David A. Wheeler




Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#13028: inplace
Resent-From: Reuben Thomas <rrt@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Mon, 16 May 2016 13:16:01 +0000
Resent-Message-ID: <handler.13028.B13028.146340451915729 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 13028
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: 
To: =?UTF-8?Q?P=C3=A1draig?= Brady <P@HIDDEN>
Cc: 13028 <at> debbugs.gnu.org, "David A. Wheeler" <dwheeler@HIDDEN>
Received: via spool by 13028-submit <at> debbugs.gnu.org id=B13028.146340451915729
          (code B ref 13028); Mon, 16 May 2016 13:16:01 +0000
Received: (at 13028) by debbugs.gnu.org; 16 May 2016 13:15:19 +0000
Received: from localhost ([127.0.0.1]:53379 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1b2IMg-00045d-Qv
	for submit <at> debbugs.gnu.org; Mon, 16 May 2016 09:15:19 -0400
Received: from mail-qk0-f178.google.com ([209.85.220.178]:33187)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rrt@HIDDEN>) id 1b2IMd-00045O-OK
 for 13028 <at> debbugs.gnu.org; Mon, 16 May 2016 09:15:17 -0400
Received: by mail-qk0-f178.google.com with SMTP id n63so95870285qkf.0
 for <13028 <at> debbugs.gnu.org>; Mon, 16 May 2016 06:15:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sc3d.org; s=google;
 h=mime-version:in-reply-to:references:date:message-id:subject:from:to
 :cc; bh=GTL+r+yytCKwNyTbKkMmBo90YWqhgKoyRy2cS/2cs0g=;
 b=i1N9nmzyyp2vPppGmUioFUo3+364ITol7Mrxt7oUrVHn/Yxu4TdgFkmiJND+zcXCcS
 QjIFS2tHBm2StcuBjQBew1j9QdyT1+t8mJdrYcaumbXJOe4MOyM/3DD7zsag5y/hrVcG
 Zs35Wztb7TpOYG3b2qR8G5AnissUEQ3sC4jqs=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:mime-version:in-reply-to:references:date
 :message-id:subject:from:to:cc;
 bh=GTL+r+yytCKwNyTbKkMmBo90YWqhgKoyRy2cS/2cs0g=;
 b=Zyxx2PAj1OGJIAGEVwnipIiK1y8/pD14Mg48TRYXyGAYgwbxEBF86Kav9kaoDoMIAa
 fQPzas+7f4Laxgw4iiankaoJbZ77PqNGLAsoc9xNosRd3d/8hEYwDP6BmcOC5g55MGn/
 2yLwzurvtou6rkxoR/K1FvbAEQAdyPC3HbMX5DaGsFRR1SeTLJnHjuzo9e9//A85zxfi
 zeNyHPc/gTkyocycW4LNh5tQgCXFiUPR9oXdi3TOiVBqniFR4Py6TeEgIbPNGfvBhenq
 mkU8H+Hqh4xy5+oJr7KpvdmacJTpFapWcLfq7wjHaqGssVnpHPnKOHFshPcCbwH/JYOL
 qQLg==
X-Gm-Message-State: AOPr4FV5/zKfHeCvu4h+ryVANdHg0dh/wdDpWB/J1BHfeWLYZBl30WbjvpzAKt+Dw6EJ6gsFjtVxJNfOvdgN6Fx1
MIME-Version: 1.0
X-Received: by 10.55.186.132 with SMTP id k126mr29991867qkf.176.1463404510158; 
 Mon, 16 May 2016 06:15:10 -0700 (PDT)
Received: by 10.55.86.70 with HTTP; Mon, 16 May 2016 06:15:10 -0700 (PDT)
In-Reply-To: <50B7B486.60401@HIDDEN>
References: <CAOnWdog-3wBokdqgZZDaXs=wp8cvn3asTpp3NFmtokohAQ-WJw@HIDDEN>
 <50B780AD.6080704@HIDDEN>
 <CAOnWdojwq2-OsujxZvuSpb1fc2_b3Z4-A57XTQ0Sg37scBiHhw@HIDDEN>
 <50B7B486.60401@HIDDEN>
Date: Mon, 16 May 2016 14:15:10 +0100
Message-ID: <CAOnWdohUcWyc3fUTK83K=jjQPdQjgBZtTz7L=_odSv6NbQkuyA@HIDDEN>
From: Reuben Thomas <rrt@HIDDEN>
Content-Type: multipart/alternative; boundary=94eb2c043626fdcace0532f569d2
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

--94eb2c043626fdcace0532f569d2
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 29 November 2012 at 19:16, P=C3=A1draig Brady <P@HIDDEN> wrote:

> On 11/29/2012 07:03 PM, Reuben Thomas wrote:
>
>> On 29 November 2012 15:35, P=C3=A1draig Brady <P@HIDDEN> wrote:
>>
>>
>>> I definitely think this is worthwhile.
>>>
>>>
>> Great!
>>
>>
>> Where to put such a script is an issue.
>>> We were thinking of a contrib/ folder for higher level
>>> scripts like this that could leverage coreutils/
>>> Translations in the shell script was one thing that was
>>> I was wondering about, which I need to look at.
>>>
>>>
>> Is there a reason it can't be shipped so it'll install as part of
>> coreutils?
>>
>
> Well contrib/ in upstream to be installed in standard locations.
>
> rewrite is my favorite name so far.
>>>
>>>
>> It sounds better, but I'd favour "inplace" as it's the term used by most
>> utilities, like Perl and sed, that already provide such a built-in
>> facility, and is hence more easily discovered.
>>
>
> Previous notes on naming:
> http://lists.gnu.org/archive/html/bug-coreutils/2010-03/msg00238.html
>
> "rewrite" is more descriptive as a verb as to what is actually happening.
> We can finalize on the naming anyway when we have the implementation
> sorted.
>

=E2=80=8BDid this get anywhere?

--=20
http://rrt.sc3d.org

--94eb2c043626fdcace0532f569d2
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-size:small">On =
29 November 2012 at 19:16, P=C3=A1draig Brady <span dir=3D"ltr">&lt;<a href=
=3D"mailto:P@HIDDEN" target=3D"_blank">P@HIDDEN</a>&gt;</sp=
an> wrote:<br></div><div class=3D"gmail_extra"><div class=3D"gmail_quote"><=
blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px=
 #ccc solid;padding-left:1ex"><span class=3D"">On 11/29/2012 07:03 PM, Reub=
en Thomas wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
On 29 November 2012 15:35, P=C3=A1draig Brady &lt;<a href=3D"mailto:P@draig=
brady.com" target=3D"_blank">P@HIDDEN</a>&gt; wrote:<br>
<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
<br>
I definitely think this is worthwhile.<br>
<br>
</blockquote>
<br>
Great!<br>
<br>
<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
Where to put such a script is an issue.<br>
We were thinking of a contrib/ folder for higher level<br>
scripts like this that could leverage coreutils/<br>
Translations in the shell script was one thing that was<br>
I was wondering about, which I need to look at.<br>
<br>
</blockquote>
<br>
Is there a reason it can&#39;t be shipped so it&#39;ll install as part of c=
oreutils?<br>
</blockquote>
<br></span>
Well contrib/ in upstream to be installed in standard locations.<span class=
=3D""><br>
<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><blockquote class=3D"gmail_quote" style=3D"m=
argin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
rewrite is my favorite name so far.<br>
<br>
</blockquote>
<br>
It sounds better, but I&#39;d favour &quot;inplace&quot; as it&#39;s the te=
rm used by most<br>
utilities, like Perl and sed, that already provide such a built-in<br>
facility, and is hence more easily discovered.<br>
</blockquote>
<br></span>
Previous notes on naming:<br>
<a href=3D"http://lists.gnu.org/archive/html/bug-coreutils/2010-03/msg00238=
.html" rel=3D"noreferrer" target=3D"_blank">http://lists.gnu.org/archive/ht=
ml/bug-coreutils/2010-03/msg00238.html</a><br>
<br>
&quot;rewrite&quot; is more descriptive as a verb as to what is actually ha=
ppening.<br>
We can finalize on the naming anyway when we have the implementation sorted=
.<br></blockquote></div><div class=3D"gmail_extra"><br></div><div class=3D"=
gmail_default" style=3D"font-size:small">=E2=80=8BDid this get anywhere?</d=
iv><div><br></div>-- <br><div class=3D"gmail_signature"><a href=3D"http://r=
rt.sc3d.org" target=3D"_blank">http://rrt.sc3d.org</a></div>
</div></div>

--94eb2c043626fdcace0532f569d2--




Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#13028: inplace
Resent-From: =?UTF-8?Q?P=C3=A1draig?= Brady <P@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Mon, 16 May 2016 13:43:02 +0000
Resent-Message-ID: <handler.13028.B13028.146340613718163 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 13028
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: 
To: Reuben Thomas <rrt@HIDDEN>
Cc: 13028 <at> debbugs.gnu.org, "David A. Wheeler" <dwheeler@HIDDEN>
Received: via spool by 13028-submit <at> debbugs.gnu.org id=B13028.146340613718163
          (code B ref 13028); Mon, 16 May 2016 13:43:02 +0000
Received: (at 13028) by debbugs.gnu.org; 16 May 2016 13:42:17 +0000
Received: from localhost ([127.0.0.1]:53400 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1b2Imn-0004it-Ax
	for submit <at> debbugs.gnu.org; Mon, 16 May 2016 09:42:17 -0400
Received: from mail.magicbluesmoke.com ([82.195.144.49]:52889)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <P@HIDDEN>) id 1b2Imk-0004ik-PI
 for 13028 <at> debbugs.gnu.org; Mon, 16 May 2016 09:42:15 -0400
Received: from [192.168.1.80] (unknown [109.79.122.175])
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (No client certificate requested)
 by mail.magicbluesmoke.com (Postfix) with ESMTPSA id 2B0CFAD;
 Mon, 16 May 2016 14:42:13 +0100 (IST)
References: <CAOnWdog-3wBokdqgZZDaXs=wp8cvn3asTpp3NFmtokohAQ-WJw@HIDDEN>
 <50B780AD.6080704@HIDDEN>
 <CAOnWdojwq2-OsujxZvuSpb1fc2_b3Z4-A57XTQ0Sg37scBiHhw@HIDDEN>
 <50B7B486.60401@HIDDEN>
 <CAOnWdohUcWyc3fUTK83K=jjQPdQjgBZtTz7L=_odSv6NbQkuyA@HIDDEN>
From: =?UTF-8?Q?P=C3=A1draig?= Brady <P@HIDDEN>
Message-ID: <5739CE2C.60500@HIDDEN>
Date: Mon, 16 May 2016 14:42:04 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
 Thunderbird/38.3.0
MIME-Version: 1.0
In-Reply-To: <CAOnWdohUcWyc3fUTK83K=jjQPdQjgBZtTz7L=_odSv6NbQkuyA@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

On 16/05/16 14:15, Reuben Thomas wrote:
> On 29 November 2012 at 19:16, Pádraig Brady <P@HIDDEN> wrote:
>
>> On 11/29/2012 07:03 PM, Reuben Thomas wrote:
>>
>>> On 29 November 2012 15:35, Pádraig Brady <P@HIDDEN> wrote:
>>>
>>>
>>>> I definitely think this is worthwhile.
>>>>
>>>>
>>> Great!
>>>
>>>
>>> Where to put such a script is an issue.
>>>> We were thinking of a contrib/ folder for higher level
>>>> scripts like this that could leverage coreutils/
>>>> Translations in the shell script was one thing that was
>>>> I was wondering about, which I need to look at.
>>>>
>>>>
>>> Is there a reason it can't be shipped so it'll install as part of
>>> coreutils?
>>>
>>
>> Well contrib/ in upstream to be installed in standard locations.
>>
>> rewrite is my favorite name so far.
>>>>
>>>>
>>> It sounds better, but I'd favour "inplace" as it's the term used by most
>>> utilities, like Perl and sed, that already provide such a built-in
>>> facility, and is hence more easily discovered.
>>>
>>
>> Previous notes on naming:
>> http://lists.gnu.org/archive/html/bug-coreutils/2010-03/msg00238.html
>>
>> "rewrite" is more descriptive as a verb as to what is actually happening.
>> We can finalize on the naming anyway when we have the implementation
>> sorted.
>>
>
> ​Did this get anywhere?

Nothing public unfortunately.

Pádraig




Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#13028: inplace
Resent-From: Reuben Thomas <rrt@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Mon, 16 May 2016 13:48:02 +0000
Resent-Message-ID: <handler.13028.B13028.146340645218651 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 13028
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: 
To: =?UTF-8?Q?P=C3=A1draig?= Brady <P@HIDDEN>
Cc: 13028 <at> debbugs.gnu.org, "David A. Wheeler" <dwheeler@HIDDEN>
Received: via spool by 13028-submit <at> debbugs.gnu.org id=B13028.146340645218651
          (code B ref 13028); Mon, 16 May 2016 13:48:02 +0000
Received: (at 13028) by debbugs.gnu.org; 16 May 2016 13:47:32 +0000
Received: from localhost ([127.0.0.1]:53404 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1b2Irr-0004qk-Un
	for submit <at> debbugs.gnu.org; Mon, 16 May 2016 09:47:32 -0400
Received: from mail-qk0-f180.google.com ([209.85.220.180]:36216)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rrt@HIDDEN>) id 1b2Irp-0004qW-6X
 for 13028 <at> debbugs.gnu.org; Mon, 16 May 2016 09:47:29 -0400
Received: by mail-qk0-f180.google.com with SMTP id x7so96450925qkd.3
 for <13028 <at> debbugs.gnu.org>; Mon, 16 May 2016 06:47:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sc3d.org; s=google;
 h=mime-version:in-reply-to:references:date:message-id:subject:from:to
 :cc; bh=755GhzSt9BtQ4VS1pJ3zSaBBjpjVZlDA8rI5sdwuxfo=;
 b=SiMUdoUXVEXHHK+yMKypPfYrGSkc1a8B9hcT19mjne3S/LnH/+n/lSovfJdZL+mA/H
 G5DRMegk8vEfZ9pyLXN8kZNGuv8NEyHM2yGb22k/BVwZseg+56EkYkG7iDlNF7/I4Y8w
 mDuNIORm1nSCasFGF4jo0AplxC+HA4lM9R584=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:mime-version:in-reply-to:references:date
 :message-id:subject:from:to:cc;
 bh=755GhzSt9BtQ4VS1pJ3zSaBBjpjVZlDA8rI5sdwuxfo=;
 b=ly6TEojxmZLfbOe3me+yCmWVcydEgF85qrVIbqU1ccMPSW35qL3IETg4n+vBMnB4gg
 pDlvVOjR7O3fUCid0u3UGeylaCmMHfs8Wfc4KAn7NNFIM5vbdjQTCXNK2wbzfKD22ZO8
 4SbSdvoFjw/6WDJ5keurP8EJF2nxkCDUCD93p+XHhAkr4x7ISpVIEzFiQinSe9cEAFQG
 xZ+BMHrB7mT9F44Efi66GSzayHyA8JSav2ZTROKNbBR7e34k2kMRwegs1pDnX/bXKBu1
 NYF0/QGid4cIlXoQHmqOP3FxEkDSPNgHI1NPKvBs5k+wQPUWGt5+Z57KeXWvM2I1B2cH
 IJhw==
X-Gm-Message-State: AOPr4FUlZBCFbqF3ZfuUr6O1c9LMy4mOg20PmWYvwWJJ0I9LO6LHY7xOjcbO1w7Beeu5/22dbmBf35mHiivILlV2
MIME-Version: 1.0
X-Received: by 10.55.180.133 with SMTP id d127mr30728762qkf.131.1463406443673; 
 Mon, 16 May 2016 06:47:23 -0700 (PDT)
Received: by 10.55.86.70 with HTTP; Mon, 16 May 2016 06:47:23 -0700 (PDT)
In-Reply-To: <5739CE2C.60500@HIDDEN>
References: <CAOnWdog-3wBokdqgZZDaXs=wp8cvn3asTpp3NFmtokohAQ-WJw@HIDDEN>
 <50B780AD.6080704@HIDDEN>
 <CAOnWdojwq2-OsujxZvuSpb1fc2_b3Z4-A57XTQ0Sg37scBiHhw@HIDDEN>
 <50B7B486.60401@HIDDEN>
 <CAOnWdohUcWyc3fUTK83K=jjQPdQjgBZtTz7L=_odSv6NbQkuyA@HIDDEN>
 <5739CE2C.60500@HIDDEN>
Date: Mon, 16 May 2016 14:47:23 +0100
Message-ID: <CAOnWdojAtw3872xT59seGeO4ZaWF9o-kqkWufEW7fZJ22jFXRg@HIDDEN>
From: Reuben Thomas <rrt@HIDDEN>
Content-Type: multipart/alternative; boundary=94eb2c06fad63cff3e0532f5dde7
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

--94eb2c06fad63cff3e0532f5dde7
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 16 May 2016 at 14:42, P=C3=A1draig Brady <P@HIDDEN> wrote:

> On 16/05/16 14:15, Reuben Thomas wrote:
>
>>
>> =E2=80=8BDid this get anywhere?
>>
>
> Nothing public unfortunately.


=E2=80=8BAre there difficulties one might be able to help with?

--=20
http://rrt.sc3d.org

--94eb2c06fad63cff3e0532f5dde7
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-size:small">On =
16 May 2016 at 14:42, P=C3=A1draig Brady <span dir=3D"ltr">&lt;<a href=3D"m=
ailto:P@HIDDEN" target=3D"_blank">P@HIDDEN</a>&gt;</span> w=
rote:<br></div><div class=3D"gmail_extra"><div class=3D"gmail_quote"><block=
quote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc=
 solid;padding-left:1ex"><span class=3D"">On 16/05/16 14:15, Reuben Thomas =
wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><br>
=E2=80=8BDid this get anywhere?<br>
</blockquote>
<br></span>
Nothing public unfortunately.</blockquote><div><br></div><div><div class=3D=
"gmail_default" style=3D"font-size:small;display:inline">=E2=80=8BAre there=
 difficulties one might be able to help with?</div></div></div><div><br></d=
iv>-- <br><div class=3D"gmail_signature"><a href=3D"http://rrt.sc3d.org" ta=
rget=3D"_blank">http://rrt.sc3d.org</a></div>
</div></div>

--94eb2c06fad63cff3e0532f5dde7--




Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#13028: inplace
Resent-From: =?UTF-8?Q?P=C3=A1draig?= Brady <P@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Mon, 16 May 2016 14:43:01 +0000
Resent-Message-ID: <handler.13028.B13028.146340974524521 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 13028
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: 
To: Reuben Thomas <rrt@HIDDEN>
Cc: 13028 <at> debbugs.gnu.org, "David A. Wheeler" <dwheeler@HIDDEN>
Received: via spool by 13028-submit <at> debbugs.gnu.org id=B13028.146340974524521
          (code B ref 13028); Mon, 16 May 2016 14:43:01 +0000
Received: (at 13028) by debbugs.gnu.org; 16 May 2016 14:42:25 +0000
Received: from localhost ([127.0.0.1]:53860 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1b2Jiz-0006NR-Hg
	for submit <at> debbugs.gnu.org; Mon, 16 May 2016 10:42:25 -0400
Received: from mail.magicbluesmoke.com ([82.195.144.49]:53035)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <P@HIDDEN>) id 1b2Jix-0006NI-1G
 for 13028 <at> debbugs.gnu.org; Mon, 16 May 2016 10:42:24 -0400
Received: from [192.168.1.80] (unknown [109.79.122.175])
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (No client certificate requested)
 by mail.magicbluesmoke.com (Postfix) with ESMTPSA id 95DECAD;
 Mon, 16 May 2016 15:42:21 +0100 (IST)
References: <CAOnWdog-3wBokdqgZZDaXs=wp8cvn3asTpp3NFmtokohAQ-WJw@HIDDEN>
 <50B780AD.6080704@HIDDEN>
 <CAOnWdojwq2-OsujxZvuSpb1fc2_b3Z4-A57XTQ0Sg37scBiHhw@HIDDEN>
 <50B7B486.60401@HIDDEN>
 <CAOnWdohUcWyc3fUTK83K=jjQPdQjgBZtTz7L=_odSv6NbQkuyA@HIDDEN>
 <5739CE2C.60500@HIDDEN>
 <CAOnWdojAtw3872xT59seGeO4ZaWF9o-kqkWufEW7fZJ22jFXRg@HIDDEN>
From: =?UTF-8?Q?P=C3=A1draig?= Brady <P@HIDDEN>
Message-ID: <5739DC4C.5030309@HIDDEN>
Date: Mon, 16 May 2016 15:42:20 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
 Thunderbird/38.3.0
MIME-Version: 1.0
In-Reply-To: <CAOnWdojAtw3872xT59seGeO4ZaWF9o-kqkWufEW7fZJ22jFXRg@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

On 16/05/16 14:47, Reuben Thomas wrote:
> On 16 May 2016 at 14:42, Pádraig Brady <P@HIDDEN> wrote:
>
>> On 16/05/16 14:15, Reuben Thomas wrote:
>>
>>>
>>> ​Did this get anywhere?
>>>
>>
>> Nothing public unfortunately.
>
>
> ​Are there difficulties one might be able to help with?

I just don't have the time at present to complete this.

I did implement ACID file replacement using POSIX APIs a while ago in:
https://github.com/pixelb/crudini
The commit messages there have details on fsync()ing requirements etc.

Implementation in C in coreutils could also use other APIs where available
like renameat2(..., RENAME_EXCHANGE) and exchangedata() etc.
I noticed XFS_IOC_SWAPEXT but that's currently hardcoded
to support only same sized replacements (for defragment apps).
I was thinking of providing a wrapper for exchangedata() in gnulib,
which could be leveraged where available or falling back to
the current POSIX APIs.

thanks,
Pádraig




Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 18 Oct 2018 22:57:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 18 18:57:42 2018
Received: from localhost ([127.0.0.1]:57509 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gDHEc-0001YG-7X
	for submit <at> debbugs.gnu.org; Thu, 18 Oct 2018 18:57:42 -0400
Received: from mail-io1-f46.google.com ([209.85.166.46]:42248)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <assafgordon@HIDDEN>) id 1gDHEa-0001Xx-Jx
 for control <at> debbugs.gnu.org; Thu, 18 Oct 2018 18:57:41 -0400
Received: by mail-io1-f46.google.com with SMTP id n18-v6so21977441ioa.9
 for <control <at> debbugs.gnu.org>; Thu, 18 Oct 2018 15:57:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=to:from:message-id:date:user-agent:mime-version:content-language
 :content-transfer-encoding;
 bh=gfjJtE9XSlZO0+mzwBihlSSGvqkd1v92e+hxuB9h9+U=;
 b=gD2pB1zqTIKOWALjXLK82hLtBCfoJP9uF6dWB9J0Fdf47vX5gyKIZ57wO8m+CxmZNX
 MwethfEzTA+ivqmCM9o3cAhcopSWfSb0IsX+T9KQo8AEDey8CEkeZy0D0CC6j4gb2QBm
 cpiiwOgRsjlOW13qMuQBRkLEVC0bhse2v95zPG5TmwGkVtkbgiCXrZgDB9IqeBdgrCIX
 wTMiWHHm4Dx2HbCq6+xUYFxArugx0JnM83jYsra6SZ+Vh9PpBoMotZcqxSNLgL3vGU8J
 +uN6myRE2wKVJFJjpetx4DumaUle0BZtBi9C/JiwQAYrKROC1ztEiRASdVCXI3APmqhs
 MMqA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:to:from:message-id:date:user-agent:mime-version
 :content-language:content-transfer-encoding;
 bh=gfjJtE9XSlZO0+mzwBihlSSGvqkd1v92e+hxuB9h9+U=;
 b=IAaHVZ0QgIfPpr4yGW3y9oI978c1pxAjNhbW8Np7vQbJ72FBRN9WEsp49/+dls4v/8
 /sa1oo5aHES+cwBPzuQaCgl96AFHFt2zJTn9ECka3jRmaJ5j4QfevB/GRyT5IgGrz/IL
 Ru5VxViVq4MPQ7tvDZE9aRpxNwsvTGJ3rBtrrgUaPsNdEuSl0wZTfuzz8ijfEGVWx6ec
 quL3/PsGA73xK31HTLDOTpvSSvWtx/YEY/NWYx5NuI8v6igEoWl5inb/UOp8Hc/4USIR
 HpoyZf7wvlwbHt1jxHqq0ZKM+gp0uVyc+y+ENltcu2grZ7PRJXTDBJO8OrRaR4EaQNUe
 jTvA==
X-Gm-Message-State: AGRZ1gKTBSrbvAeqHtzdSseLCbGHWli0rPs5TvzVhiPDcUiBRsqq3Ujt
 0W4SxCwxEUwrRV7FC1XhUAsdNbEI
X-Google-Smtp-Source: AJdET5ciDJd4eHUdFn776AdNuSTBrpmPmN2Q564ZJus4w2tXY/7qbNdTQbpm8vfutG6Enz/DH28jhw==
X-Received: by 2002:a6b:289:: with SMTP id
 131-v6mr1500390ioc.197.1539903454200; 
 Thu, 18 Oct 2018 15:57:34 -0700 (PDT)
Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38])
 by smtp.googlemail.com with ESMTPSA id
 m71-v6sm608653itb.26.2018.10.18.15.57.32
 for <control <at> debbugs.gnu.org>
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Thu, 18 Oct 2018 15:57:32 -0700 (PDT)
To: control <at> debbugs.gnu.org
From: Assaf Gordon <assafgordon@HIDDEN>
Message-ID: <3200f97f-bfd2-691c-b803-807755460ff0@HIDDEN>
Date: Thu, 18 Oct 2018 16:57:31 -0600
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
 Thunderbird/52.9.1
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: 2.0 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  severity 13028 wishlist retitle 13028 inplace: new program
 [...] Content analysis details:   (2.0 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at http://www.dnswl.org/, no
 trust [209.85.166.46 listed in list.dnswl.org]
 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider
 (assafgordon[at]gmail.com)
 -0.0 SPF_PASS               SPF: sender matches SPF record
 -0.0 RCVD_IN_MSPIKE_H2      RBL: Average reputation (+2)
 [209.85.166.46 listed in wl.mailspike.net]
 1.8 MISSING_SUBJECT        Missing Subject: header
 0.2 NO_SUBJECT             Extra score for no subject
X-Debbugs-Envelope-To: control
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

severity 13028 wishlist
retitle 13028 inplace: new program




Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 18 Oct 2018 22:57:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 18 18:57:42 2018
Received: from localhost ([127.0.0.1]:57509 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gDHEc-0001YG-7X
	for submit <at> debbugs.gnu.org; Thu, 18 Oct 2018 18:57:42 -0400
Received: from mail-io1-f46.google.com ([209.85.166.46]:42248)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <assafgordon@HIDDEN>) id 1gDHEa-0001Xx-Jx
 for control <at> debbugs.gnu.org; Thu, 18 Oct 2018 18:57:41 -0400
Received: by mail-io1-f46.google.com with SMTP id n18-v6so21977441ioa.9
 for <control <at> debbugs.gnu.org>; Thu, 18 Oct 2018 15:57:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=to:from:message-id:date:user-agent:mime-version:content-language
 :content-transfer-encoding;
 bh=gfjJtE9XSlZO0+mzwBihlSSGvqkd1v92e+hxuB9h9+U=;
 b=gD2pB1zqTIKOWALjXLK82hLtBCfoJP9uF6dWB9J0Fdf47vX5gyKIZ57wO8m+CxmZNX
 MwethfEzTA+ivqmCM9o3cAhcopSWfSb0IsX+T9KQo8AEDey8CEkeZy0D0CC6j4gb2QBm
 cpiiwOgRsjlOW13qMuQBRkLEVC0bhse2v95zPG5TmwGkVtkbgiCXrZgDB9IqeBdgrCIX
 wTMiWHHm4Dx2HbCq6+xUYFxArugx0JnM83jYsra6SZ+Vh9PpBoMotZcqxSNLgL3vGU8J
 +uN6myRE2wKVJFJjpetx4DumaUle0BZtBi9C/JiwQAYrKROC1ztEiRASdVCXI3APmqhs
 MMqA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:to:from:message-id:date:user-agent:mime-version
 :content-language:content-transfer-encoding;
 bh=gfjJtE9XSlZO0+mzwBihlSSGvqkd1v92e+hxuB9h9+U=;
 b=IAaHVZ0QgIfPpr4yGW3y9oI978c1pxAjNhbW8Np7vQbJ72FBRN9WEsp49/+dls4v/8
 /sa1oo5aHES+cwBPzuQaCgl96AFHFt2zJTn9ECka3jRmaJ5j4QfevB/GRyT5IgGrz/IL
 Ru5VxViVq4MPQ7tvDZE9aRpxNwsvTGJ3rBtrrgUaPsNdEuSl0wZTfuzz8ijfEGVWx6ec
 quL3/PsGA73xK31HTLDOTpvSSvWtx/YEY/NWYx5NuI8v6igEoWl5inb/UOp8Hc/4USIR
 HpoyZf7wvlwbHt1jxHqq0ZKM+gp0uVyc+y+ENltcu2grZ7PRJXTDBJO8OrRaR4EaQNUe
 jTvA==
X-Gm-Message-State: AGRZ1gKTBSrbvAeqHtzdSseLCbGHWli0rPs5TvzVhiPDcUiBRsqq3Ujt
 0W4SxCwxEUwrRV7FC1XhUAsdNbEI
X-Google-Smtp-Source: AJdET5ciDJd4eHUdFn776AdNuSTBrpmPmN2Q564ZJus4w2tXY/7qbNdTQbpm8vfutG6Enz/DH28jhw==
X-Received: by 2002:a6b:289:: with SMTP id
 131-v6mr1500390ioc.197.1539903454200; 
 Thu, 18 Oct 2018 15:57:34 -0700 (PDT)
Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38])
 by smtp.googlemail.com with ESMTPSA id
 m71-v6sm608653itb.26.2018.10.18.15.57.32
 for <control <at> debbugs.gnu.org>
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Thu, 18 Oct 2018 15:57:32 -0700 (PDT)
To: control <at> debbugs.gnu.org
From: Assaf Gordon <assafgordon@HIDDEN>
Message-ID: <3200f97f-bfd2-691c-b803-807755460ff0@HIDDEN>
Date: Thu, 18 Oct 2018 16:57:31 -0600
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
 Thunderbird/52.9.1
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: 2.0 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  severity 13028 wishlist retitle 13028 inplace: new program
 [...] Content analysis details:   (2.0 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at http://www.dnswl.org/, no
 trust [209.85.166.46 listed in list.dnswl.org]
 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider
 (assafgordon[at]gmail.com)
 -0.0 SPF_PASS               SPF: sender matches SPF record
 -0.0 RCVD_IN_MSPIKE_H2      RBL: Average reputation (+2)
 [209.85.166.46 listed in wl.mailspike.net]
 1.8 MISSING_SUBJECT        Missing Subject: header
 0.2 NO_SUBJECT             Extra score for no subject
X-Debbugs-Envelope-To: control
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

severity 13028 wishlist
retitle 13028 inplace: new program




Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#13028: inplace
Resent-From: Reuben Thomas <rrt@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Mon, 12 Sep 2022 08:08:01 +0000
Resent-Message-ID: <handler.13028.B13028.166297007730169 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 13028
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: 
To: =?UTF-8?Q?P=C3=A1draig?= Brady <P@HIDDEN>
Cc: 13028 <at> debbugs.gnu.org, "David A. Wheeler" <dwheeler@HIDDEN>
Received: via spool by 13028-submit <at> debbugs.gnu.org id=B13028.166297007730169
          (code B ref 13028); Mon, 12 Sep 2022 08:08:01 +0000
Received: (at 13028) by debbugs.gnu.org; 12 Sep 2022 08:07:57 +0000
Received: from localhost ([127.0.0.1]:44038 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oXeU0-0007qX-KU
	for submit <at> debbugs.gnu.org; Mon, 12 Sep 2022 04:07:56 -0400
Received: from mail-ej1-f47.google.com ([209.85.218.47]:40874)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rrt@HIDDEN>) id 1oXeTx-0007qG-S3
 for 13028 <at> debbugs.gnu.org; Mon, 12 Sep 2022 04:07:56 -0400
Received: by mail-ej1-f47.google.com with SMTP id l14so18253478eja.7
 for <13028 <at> debbugs.gnu.org>; Mon, 12 Sep 2022 01:07:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sc3d.org; s=google;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date;
 bh=dJ1C/eA/t+x2qksFWvXTBvqrfVOX9MDQl8GenXW49hE=;
 b=NIesvO6BM5+TXuKLr7iFBxKkgbOrQ5Q4y65A8H2rIcmVvxBY9Eiy2QhErjh9yZaP8j
 1Iw97QFNAREneUoL8J4kPY9k3NTTmWGMMZo2sWC808zy1Lv51J0Ls2o10/09Ctd4CHf0
 m13ctn6NN4/ezGdC+hS9JNX2vs5thlfAtx2fY=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date;
 bh=dJ1C/eA/t+x2qksFWvXTBvqrfVOX9MDQl8GenXW49hE=;
 b=JJjh3udpPJiGJY/2UcgU7pjyiFF9AM87x5YeK5to4QhtZ22IN0dxdSGwxCYaEs0ZK3
 /ONnnUucbRJNA/UZftTYEifjW1Gy3xdXR7yIlTYMbfk2jpTojoHurTxvBs8VTZQSHzla
 DaEzcvRkvM+2cYSZGoF1JQdsJl3t6kIb02k5wRt3egGNRs0dGOilqp9NokNj9Ye7o9Y7
 Jl5qy1yrWzzdsJtUuKj54e1WibAx+F5XXF7eNON2/7SL+U9INL0x7yIV4gonBDUodxZy
 KwaPbU7KsQF84fxzWoyiZTtyeRDL0f/3CcbeT0V2oOgfK88vXOniqm4tikkjkefiV+Og
 1P9g==
X-Gm-Message-State: ACgBeo23AV0b4H2VYhbfhcUQTrs8gGS92cxFBQH20gMqOwTR9N53AlTZ
 2o7cEOUjmHTZUGhR6TrObzpKm/Tgilhwco4QMmUSeQ==
X-Google-Smtp-Source: AA6agR5cMSq1nzeUWOMp/xkeXZ3F+8CrRxFFFHCXdYR13VLVz/wx4khRQNoNI1FsDTE/8ywiOE0xnNSBOavRqiEhg9U=
X-Received: by 2002:a17:906:4789:b0:742:55b1:c3f0 with SMTP id
 cw9-20020a170906478900b0074255b1c3f0mr18002312ejc.446.1662970067909; Mon, 12
 Sep 2022 01:07:47 -0700 (PDT)
MIME-Version: 1.0
References: <CAOnWdog-3wBokdqgZZDaXs=wp8cvn3asTpp3NFmtokohAQ-WJw@HIDDEN>
 <50B780AD.6080704@HIDDEN>
 <CAOnWdojwq2-OsujxZvuSpb1fc2_b3Z4-A57XTQ0Sg37scBiHhw@HIDDEN>
 <50B7B486.60401@HIDDEN>
 <CAOnWdohUcWyc3fUTK83K=jjQPdQjgBZtTz7L=_odSv6NbQkuyA@HIDDEN>
 <5739CE2C.60500@HIDDEN>
 <CAOnWdojAtw3872xT59seGeO4ZaWF9o-kqkWufEW7fZJ22jFXRg@HIDDEN>
 <5739DC4C.5030309@HIDDEN>
In-Reply-To: <5739DC4C.5030309@HIDDEN>
From: Reuben Thomas <rrt@HIDDEN>
Date: Mon, 12 Sep 2022 09:07:36 +0100
Message-ID: <CAOnWdojsep2fy_ds9B2bq_-S2kFdFo0Vcvt9A7A89RmPDhhFnw@HIDDEN>
Content-Type: multipart/alternative; boundary="0000000000002b9a3605e8766415"
X-Spam-Score: -0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--0000000000002b9a3605e8766415
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Mon, 16 May 2016 at 15:42, P=C3=A1draig Brady <P@HIDDEN> wrote:

>
> I just don't have the time at present to complete this.
>
> I did implement ACID file replacement using POSIX APIs a while ago in:
> https://github.com/pixelb/crudini
> The commit messages there have details on fsync()ing requirements etc.
>
> Implementation in C in coreutils could also use other APIs where availabl=
e
> like renameat2(..., RENAME_EXCHANGE) and exchangedata() etc.
> I noticed XFS_IOC_SWAPEXT but that's currently hardcoded
> to support only same sized replacements (for defragment apps).
> I was thinking of providing a wrapper for exchangedata() in gnulib,
> which could be leveraged where available or falling back to
> the current POSIX APIs.
>

Did you get any further? I was prompted to look up this thread by a
deprecation message for "tempfile" from Victor Porton's "inplace" script,
which I still use!

--=20
https://rrt.sc3d.org

--0000000000002b9a3605e8766415
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail=
_attr">On Mon, 16 May 2016 at 15:42, P=C3=A1draig Brady &lt;<a href=3D"mail=
to:P@HIDDEN">P@HIDDEN</a>&gt; wrote:<br></div><blockquote c=
lass=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px soli=
d rgb(204,204,204);padding-left:1ex"><br>
I just don&#39;t have the time at present to complete this.<br>
<br>
I did implement ACID file replacement using POSIX APIs a while ago in:<br>
<a href=3D"https://github.com/pixelb/crudini" rel=3D"noreferrer" target=3D"=
_blank">https://github.com/pixelb/crudini</a><br>
The commit messages there have details on fsync()ing requirements etc.<br>
<br>
Implementation in C in coreutils could also use other APIs where available<=
br>
like renameat2(..., RENAME_EXCHANGE) and exchangedata() etc.<br>
I noticed XFS_IOC_SWAPEXT but that&#39;s currently hardcoded<br>
to support only same sized replacements (for defragment apps).<br>
I was thinking of providing a wrapper for exchangedata() in gnulib,<br>
which could be leveraged where available or falling back to<br>
the current POSIX APIs.<br></blockquote><div><br></div><div style=3D"font-f=
amily:arial,helvetica,sans-serif;font-size:small" class=3D"gmail_default">D=
id you get any further? I was prompted to look up this thread by a deprecat=
ion message for &quot;tempfile&quot; from Victor Porton&#39;s &quot;inplace=
&quot; script, which I still use!<br></div></div><br>-- <br><div dir=3D"ltr=
" class=3D"gmail_signature"><div dir=3D"ltr"><div><div dir=3D"ltr"><a href=
=3D"https://rrt.sc3d.org" target=3D"_blank">https://rrt.sc3d.org</a></div><=
/div></div></div></div>

--0000000000002b9a3605e8766415--




Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#13028: inplace
Resent-From: =?UTF-8?Q?P=C3=A1draig?= Brady <P@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Mon, 12 Sep 2022 11:58:02 +0000
Resent-Message-ID: <handler.13028.B13028.166298383615280 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 13028
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: 
To: Reuben Thomas <rrt@HIDDEN>
Cc: 13028 <at> debbugs.gnu.org, "David A. Wheeler" <dwheeler@HIDDEN>
Received: via spool by 13028-submit <at> debbugs.gnu.org id=B13028.166298383615280
          (code B ref 13028); Mon, 12 Sep 2022 11:58:02 +0000
Received: (at 13028) by debbugs.gnu.org; 12 Sep 2022 11:57:16 +0000
Received: from localhost ([127.0.0.1]:44436 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oXi3w-0003yO-EB
	for submit <at> debbugs.gnu.org; Mon, 12 Sep 2022 07:57:16 -0400
Received: from mail-wr1-f45.google.com ([209.85.221.45]:35638)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pixelbeat@HIDDEN>) id 1oXi3v-0003yC-4J
 for 13028 <at> debbugs.gnu.org; Mon, 12 Sep 2022 07:57:15 -0400
Received: by mail-wr1-f45.google.com with SMTP id bz13so14970230wrb.2
 for <13028 <at> debbugs.gnu.org>; Mon, 12 Sep 2022 04:57:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:in-reply-to:from:references:cc:to
 :content-language:subject:user-agent:mime-version:date:message-id
 :sender:from:to:cc:subject:date;
 bh=KTXr8w/1z+MOfvxgktIA49IoC2UqKCqo4z2hmp4wQAs=;
 b=Ee0XCIXyGrKZzLWIENHpwL6xYGyARX0mzQlFq6H6YiAUZMmB6esGcX9N0ufY5Wc3zk
 zzXq/j1SCw1S4R6+GSldQaAc+6vo/KI5t/FujEN+bkc8O7POOt5gIEVYyyWyhZ5J0N11
 DKMBy8lHCLwPbBs5tUEryTLLWEMvOpDx53nmi/turS3KNhpKaXhr8xLmGQGNovn5a0Ii
 blv+iZ5nzgOFeCCob6FM2R7Aw2GeKgfhXopPSfomqUGztgFVw8/abt6789s0cWxg3PBc
 OJ8tkJiHgscVP3cwDvYaxUYRqmDue7NqM8Zss4KqycBJdal8/VmeW/+OY2VKF7QSHiVy
 ngyg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:in-reply-to:from:references:cc:to
 :content-language:subject:user-agent:mime-version:date:message-id
 :sender:x-gm-message-state:from:to:cc:subject:date;
 bh=KTXr8w/1z+MOfvxgktIA49IoC2UqKCqo4z2hmp4wQAs=;
 b=kl0C5VFps4REQiBzl+CW1iYCrqW2JV27YVdzCdhnEYLqY6W234C6GnSyex+rdwgdGC
 oiQRDmTIafSQem7NqMkNn4DAWzUrWhNnWVcmgGWAr6X8y8GNBmWUC+pJdNZHZ3+8ZHFe
 ltuJ1spijcbmtucrhnHC2vK88y6ePRDSZ8j5Q3HA5PucZFY7t96aCOpjTXMQR2g9lPjh
 odHJupCfeXhfJUckfPe1JXnDnkLIBtGi82MCKcLBXzTpwzpxfnpDiv4cCdGuaqup0Edw
 tlml9gMeJIznWtcnG1wkiUDkDVq6PFJfypPa/BqDX/RPr0s9Zi1Dr/bJ67bdMkTH4KWG
 sBCg==
X-Gm-Message-State: ACgBeo3cGgTnYQByZ6QXb+wTseAOoFjRstUNA4GLdQVaJv+UNfmGrUur
 3ALPqZNxvTC3VysTtu90qOCsGHjalhY=
X-Google-Smtp-Source: AA6agR6OVtHdpwmnljJH4PbuaaF+I6mQBaF75HATYhHX74KrEw2nUW3Q9EdDOtsS8X0bKKETtm3xXQ==
X-Received: by 2002:a5d:65c2:0:b0:228:68b7:e7b2 with SMTP id
 e2-20020a5d65c2000000b0022868b7e7b2mr14716038wrw.440.1662983829220; 
 Mon, 12 Sep 2022 04:57:09 -0700 (PDT)
Received: from [192.168.1.9]
 (95-44-90-175-dynamic.agg2.lod.rsl-rtd.eircom.net. [95.44.90.175])
 by smtp.googlemail.com with ESMTPSA id
 v8-20020a05600c12c800b003a844885f88sm9184529wmd.22.2022.09.12.04.57.08
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Mon, 12 Sep 2022 04:57:08 -0700 (PDT)
Message-ID: <8a69b56b-c3f2-112b-51bc-12dd2821eb7e@HIDDEN>
Date: Mon, 12 Sep 2022 12:57:07 +0100
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:98.0) Gecko/20100101
 Thunderbird/98.0
Content-Language: en-US
References: <CAOnWdog-3wBokdqgZZDaXs=wp8cvn3asTpp3NFmtokohAQ-WJw@HIDDEN>
 <50B780AD.6080704@HIDDEN>
 <CAOnWdojwq2-OsujxZvuSpb1fc2_b3Z4-A57XTQ0Sg37scBiHhw@HIDDEN>
 <50B7B486.60401@HIDDEN>
 <CAOnWdohUcWyc3fUTK83K=jjQPdQjgBZtTz7L=_odSv6NbQkuyA@HIDDEN>
 <5739CE2C.60500@HIDDEN>
 <CAOnWdojAtw3872xT59seGeO4ZaWF9o-kqkWufEW7fZJ22jFXRg@HIDDEN>
 <5739DC4C.5030309@HIDDEN>
 <CAOnWdojsep2fy_ds9B2bq_-S2kFdFo0Vcvt9A7A89RmPDhhFnw@HIDDEN>
From: =?UTF-8?Q?P=C3=A1draig?= Brady <P@HIDDEN>
In-Reply-To: <CAOnWdojsep2fy_ds9B2bq_-S2kFdFo0Vcvt9A7A89RmPDhhFnw@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.5 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.5 (/)

On 12/09/2022 09:07, Reuben Thomas wrote:
> On Mon, 16 May 2016 at 15:42, Pádraig Brady <P@HIDDEN <mailto:P@HIDDEN>> wrote:
> 
> 
>     I just don't have the time at present to complete this.
> 
>     I did implement ACID file replacement using POSIX APIs a while ago in:
>     https://github.com/pixelb/crudini <https://github.com/pixelb/crudini>
>     The commit messages there have details on fsync()ing requirements etc.
> 
>     Implementation in C in coreutils could also use other APIs where available
>     like renameat2(..., RENAME_EXCHANGE) and exchangedata() etc.
>     I noticed XFS_IOC_SWAPEXT but that's currently hardcoded
>     to support only same sized replacements (for defragment apps).
>     I was thinking of providing a wrapper for exchangedata() in gnulib,
>     which could be leveraged where available or falling back to
>     the current POSIX APIs.
> 
> 
> Did you get any further? I was prompted to look up this thread by a deprecation message for "tempfile" from Victor Porton's "inplace" script, which I still use!

Not yet unfortunately






Last modified: Mon, 12 Sep 2022 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.