help-gnu-utils
[Top][All Lists]
Advanced

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

Re: mktemp and suffixes


From: Nuno J. Silva
Subject: Re: mktemp and suffixes
Date: Mon, 22 Mar 2010 20:41:38 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Jim Meyering <address@hidden> writes:

> Nuno J. Silva wrote:
[...]
>> As I want to be sure nothing is overwritten, I tried calling mktemp with
>> a modified template:
>>
>> $ mktemp tmp.XXXXXXXXXX.ext
>> mktemp: too few X's in template `tmp.XXXXXXXXXX.ext'
[...]
>> Is this a limitation of mktemp (X's must be on the right)? Or am I
>> missing some parameter? --suffix=.ext (seen on the web) doesn't work.
>>
>> (And the version is 7.5:)
>
> Upgrade to coreutils-8.1 or newer (latest is 8.4).
> mktemp gained the --suffix=SUFF option in 8.1:
>
>       --suffix=SUFF   append SUFF to TEMPLATE.  SUFF must not contain slash.
>                         This option is implied if TEMPLATE does not end in X.

That's good news. But as I'm using a package management system (portage)
on which the stable coreutils version is 7.5, I'll wait a while - until
they stabilize a newer version.

Thanks!

-- 
Nuno J. Silva
gopher://sdf-eu.org/1/users/njsg




reply via email to

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