Re: [dev] situ — change files in situ

From: Connor Lane Smith <>
Date: Fri, 13 Apr 2012 14:41:09 +0100


On 13 April 2012 14:14, Troels Henriksen <> wrote:
> Note that you can also exploit shell evaluation order

Of course, that doesn't wait to see whether cmd succeeds.

I wonder whether a situ-like could be used to produce a diff of the
original file, rather than a complete second copy. Programs like sed
don't generally make that many changes, so if we were to connect situ
to the file and the cmd's stdout we could compute the diff and then
patch the original file once cmd exits 0. If someone could get that
working it would be pretty sweet.

Received on Fri Apr 13 2012 - 15:41:09 CEST

This archive was generated by hypermail 2.3.0 : Fri Apr 13 2012 - 15:48:07 CEST