bug-gnulib
[Top][All Lists]
Advanced

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

Re: mktemp: not found


From: Bruno Haible
Subject: Re: mktemp: not found
Date: Mon, 5 Dec 2011 03:00:28 +0100
User-agent: KMail/1.13.6 (Linux/2.6.37.6-0.5-desktop; KDE/4.6.0; x86_64; ; )

Jim Meyering wrote:
> How about using { ...; } instead?
> 
>   d=`unset TMPDIR; { mktemp -d -t -p "$destdir_" "$template_"; } 2>/dev/null` 
> \
> 
> That should do the same without the cost of a sub-shell.

Yes, this works too. Applied, with this ChangeLog entry:


2011-12-04  Bruno Haible  <address@hidden>
            Jim Meyering  <address@hidden>

        tests: Avoid spurious error message on platforms without mktemp program.
        * tests/init.sh (mktempd_): Run mktemp in a subcommand.

-- 
In memoriam Fred Hampton <http://en.wikipedia.org/wiki/Fred_Hampton>



reply via email to

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