bug-recutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-recutils] manual: fix overlong lines and a couple of examples.


From: Ralf Wildenhues
Subject: [bug-recutils] manual: fix overlong lines and a couple of examples.
Date: Sun, 21 Nov 2010 12:02:56 +0100
User-agent: Mutt/1.5.20 (2010-08-04)

The idiom
  cat file | $filter >> file

is dangerous: when the filter adds enough data, and quickly enough, it
may loop until you run out of space.  Details depend on buffer sizes in
cat and the kernel, and on scheduling timing.  Let's avoid recommending
inherently racy commands, see attached patch.

One solution to issues like this is sponge from the moreutils package
(not GNU, unfortunately).

Cheers,
Ralf

Attachment: 0003-manual-fix-overlong-lines-and-a-couple-of-examples.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]