Package: moreutils Version: 0.40 Severity: wishlist When writing a careful shell script, I sometimes need to generate some output, send it to a temporary file, and then atomically rename the result over a target file, to avoid truncating the target and writing incremental results. sponge seems like the right tool to do this. It already has support for atomic renaming if it has enough data to force it to use a temporary file. Would you consider adding an option to *always* use a temporary file?
Alternatively, should this just be sponge's default behavior, to always write to a temporary file and rename into place? - Josh Triplett -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.35-trunk-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages moreutils depends on: ii libc6 2.11.2-2 Embedded GNU C Library: Shared lib ii perl 5.10.1-14 Larry Wall's Practical Extraction moreutils recommends no packages. Versions of packages moreutils suggests: pn libtime-duration-perl <none> (no description available) ii libtimedate-perl 1.2000-1 collection of modules to manipulat -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org