ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2011/11/13/15:17:15

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
Date: Sun, 13 Nov 2011 22:14:42 +0200
From: Eli Zaretskii <eliz AT gnu DOT org>
Subject: Re: which: command not found
In-reply-to: <87bosf273t.fsf@turtle.gmx.de>
X-012-Sender: halo1 AT inter DOT net DOT il
To: djgpp AT delorie DOT com
Message-id: <834ny7g4p9.fsf@gnu.org>
References: <0e66e1f9-6a85-4af8-94b1-2ac490eaf4c2 AT m19g2000vbm DOT googlegroups DOT com> <4349b255-f8ba-4e1d-93b9-488b173373a9 AT g7g2000vbv DOT googlegroups DOT com> <83bosqjn0u DOT fsf AT gnu DOT org> <87aa7zapba DOT fsf AT violet DOT siamics DOT net> <837h33ga8p DOT fsf AT gnu DOT org> <87bosf273t DOT fsf AT turtle DOT gmx DOT de>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: Sven Joachim <svenjoac AT gmx DOT de>
> Date: Sun, 13 Nov 2011 19:46:30 +0100
> Bytes: 2226
> 
> >>   mktemp: create a temporary file or directory (or names)
> >> - --cut: coreutils-8.5/NEWS --
> >
> > That's my point: you need GNU Coreutils to be able to run a test suite
> > of an entirely unrelated package.
> 
> You can also use the DJGPP port of Todd Miller's mktemp, available in
> the v2tk/mktmp*.zip packages.

The situation I described was not with DJGPP.  So I had no benefit of
a ready utility that just needs a single compilation command to build.

> > How hard is it to create a temporary file/directory in a shell script?
> 
> Without using mktemp(1) or some similar utility and sticking to POSIX
> commands: very hard, probably impossible.  At least if you want to avoid
> the races and symlink attacks that happen with traditional foo$$ files.

Oh, come on! we are talking about running a test suite, for crying out
loud!  It's not like I was saying that an industry-strength program
should not use mktemp.  A test suite is something you run once, when
you build a package, and then forget about.

Again, the point is that to build a package, one should use only a
small and portable set of utilities.  The GNU Coding Standards require
that.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019