bug-coreutils
[Top][All Lists]
Advanced

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

Re: tempfile(1) in "(coreutils) shred invocation"


From: Jim Meyering
Subject: Re: tempfile(1) in "(coreutils) shred invocation"
Date: Sat, 13 Mar 2010 10:34:20 +0100

Thien-Thi Nguyen wrote:
> () Eric Blake <address@hidden>
> () Fri, 12 Mar 2010 20:51:59 -0700
>
>    Seems like it might be a reasonable thing to add to mktemp(1).  But
>    mktemp already generates 0600 by default.
>
> That's fine as it is, then.  No change needed.
>
>    What does tempfile(1) do that mktemp(1) does not?
>
> Not sure.
>
> Anyway, i will be using mktemp in rcsfreeze.sh.  Thanks for the pointer.
> To close, attached is a (tiny change) doc patch that likewise uses mktemp.

Thanks for the patch.
I've pushed it with a tweaked title.

>From 141645d9c60d547e92a4f4a8c1a3dd8474a8205e Mon Sep 17 00:00:00 2001
From: Thien-Thi Nguyen <address@hidden>
Date: Sat, 13 Mar 2010 05:34:15 +0100
Subject: [PATCH] doc: use mktemp, not tempfile, in a shred usage example

* doc/coreutils.texi (shred invocation):
Use mktemp(1) instead of Debian-specific tempfile(1).
---
 doc/coreutils.texi |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 3e7a698..34ccf5a 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -8718,7 +8718,7 @@ shred invocation
 For example:

 @example
-i=`tempfile -m 0600`
+i=`mktemp`
 exec 3<>"$i"
 rm -- "$i"
 echo "Hello, world" >&3
--
1.7.0.2.393.gfb6b




reply via email to

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