[Top][All Lists]

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

Re: How can I get rid of dinkleberry autotools temp dirs?

From: Bruce Korb
Subject: Re: How can I get rid of dinkleberry autotools temp dirs?
Date: Wed, 11 Jan 2006 09:24:06 -0800
User-agent: Mozilla Thunderbird 1.0.7 (X11/20050923)

Ralf Wildenhues wrote:
* Bruce Korb wrote on Wed, Jan 11, 2006 at 06:15:58PM CET:

Ralf Wildenhues wrote:

Which system are you on?  Where is mktemp(1) from?

This is the crux of the issue:  ``Where is mktemp(1) from?''
The code assumes that:
 f=`mktemp -d -q xxxxx`
leaves the environment variable "f" containing the name of the
directory.  "mktemp(1)" is not a well-established tool and the
``-q'' option caused the one I was using to create the directory
and not echo out its name.  Consequently, the code assumed that
the ``mktemp -d'' failed when it had not.  So, the fix is to
either test mktemp behavior before using it or to not use it.
(BTW, the one I am using I wrote more than a decade ago.
I changed the behavior of ``-q'', but nevertheless it is not
a standard tool...)

So, is your mktemp distributed at all anywhere?  I mean, it's trivial
to remove the `-q', as we use `2>/dev/null' anyway.

I've given it away and posted it now and again over the years.
Since you redirect stderr to /dev/null, the ``-q'' does not
serve a purpose.  So, remove that and the original variant will
work fine.  Thanks! - Bruce

reply via email to

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