All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Henning Schild <henning.schild@siemens.com>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] [PATCH] scripts: use mktemp instead of relying on TMPDIR beeing in env
Date: Wed, 28 Oct 2015 11:51:40 +0100	[thread overview]
Message-ID: <20151028105140.GA26607@hermes.click-hack.org> (raw)
In-Reply-To: <20151028093313.201c9817@md1em3qc>

On Wed, Oct 28, 2015 at 09:33:13AM +0100, Henning Schild wrote:
> On Tue, 27 Oct 2015 13:35:40 +0100
> Henning Schild <henning.schild@siemens.com> wrote:
> 
> > On Tue, 27 Oct 2015 13:30:04 +0100
> > Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org> wrote:
> > 
> > > On Tue, Oct 27, 2015 at 01:21:16PM +0100, Henning Schild wrote:
> > > > The environment variable TMPDIR is optional and not always set. We
> > > > could test for it and fall back to /tmp/ or just use the tool
> > > > mktemp.
> > > 
> > > I am not sure mktemp is available everywhere. What about setting
> > > TMPDIR to /tmp if not set ?
> > 
> > From what i can tell mktemp is more widely available than TMPDIR. My
> > gentoo boxes do not have TMPDIR set and i have used a ubuntu system
> > where it was not set either. mktemp is part of coreutils and even
> > busybox has one.
> > I did not feel too good reimplementing whatever else mktemp does, why
> > reinvent the wheel?
> 
> Please let me know whether i was convincing and the current patch
> version will be merged.

The patch is ok for me minus the use of $() which is used nowhere
else in the script and not strictly necessary (no nesting needed).

-- 
					    Gilles.
https://click-hack.org


  reply	other threads:[~2015-10-28 10:51 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-27 12:21 [Xenomai] [PATCH] scripts: use mktemp instead of relying on TMPDIR beeing in env Henning Schild
2015-10-27 12:29 ` [Xenomai] [PATCH v2] " Henning Schild
2015-10-27 12:30   ` [Xenomai] [PATCH v3] " Henning Schild
2015-10-27 12:32     ` Henning Schild
2015-10-27 12:30 ` [Xenomai] [PATCH] " Gilles Chanteperdrix
2015-10-27 12:35   ` Henning Schild
2015-10-28  8:33     ` Henning Schild
2015-10-28 10:51       ` Gilles Chanteperdrix [this message]
2015-10-28 11:15         ` [Xenomai] [PATCH v4] " Henning Schild
2015-10-28 11:26           ` Philippe Gerum
2015-11-04  7:53           ` Gilles Chanteperdrix
2015-11-05 10:31             ` Henning Schild
2015-11-05 10:55               ` Gilles Chanteperdrix
2015-11-05 18:22                 ` [Xenomai] [PATCH] scripts: increase number of Xs in mktemp template Henning Schild
2015-11-05 18:30                   ` Gilles Chanteperdrix
2015-11-06 10:33                     ` [Xenomai] [PATCHv2] " Henning Schild

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151028105140.GA26607@hermes.click-hack.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=henning.schild@siemens.com \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.