grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
* Portable mktemp invocation?
@ 2010-09-23 16:27 Grégoire Sutre
  2010-09-25 11:10 ` Grégoire Sutre
  2010-10-11 17:14 ` Grégoire Sutre
  0 siblings, 2 replies; 5+ messages in thread
From: Grégoire Sutre @ 2010-09-23 16:27 UTC (permalink / raw)
  To: The development of GRUB 2

Hi,

We use `mktemp' or `mktemp -d' (with no argument) in the shell scripts:

- grub-core/genmod.sh.in
- tests/util/grub-shell.in
- tests/util/grub-shell-tester.in
- tests/grub_script_blockarg.in
- tests/partmap_test.in
- util/powerpc/ieee1275/grub-mkrescue.in

But such invocations of mktemp fail on some systems (NetBSD, and,
according to their man pages, FreeBSD and MacOS X).

A simple solution would be to replace those invocations with:

mktemp [-d] ${TMPDIR:-/tmp}/tmp.XXXXXXXXXX

What do you think?  Is there a better alternative?

Grégoire


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-10-18 21:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-23 16:27 Portable mktemp invocation? Grégoire Sutre
2010-09-25 11:10 ` Grégoire Sutre
2010-10-11 17:14 ` Grégoire Sutre
2010-10-16 14:04   ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-10-18 21:11     ` Grégoire Sutre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).