octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #63728] tempname() respects the TMP environmen


From: anonymous
Subject: [Octave-bug-tracker] [bug #63728] tempname() respects the TMP environment variable and tempdir() does not
Date: Mon, 30 Jan 2023 18:17:55 -0500 (EST)

Follow-up Comment #3, bug #63728 (project octave):

[comment #1 comment #1:]
> //snip
> 
> ISTR that there were some changes regarding the used temporary directory for
Octave 8.
> Do you still see that inconsistency with (the release candidate of) Octave
8?
> 

Thanks for the hint! Seems ok in Octave 8:

$ unset TMP TMPDIR
$
$ octave -f p.m
tempdir: /tmp/
tempname: /tmp/oct-qADTgN
P_tmpdir: /tmp
$
$ env TMP=/tmp/new-tmp octave -f p.m
tempdir: /tmp/new-tmp/
tempname: /tmp/new-tmp/oct-BwAUu8
P_tmpdir: /tmp
$
$ env TMPDIR=/tmp/new-tmp octave -f p.m
tempdir: /tmp/new-tmp/
tempname: /tmp/new-tmp/oct-5HuVZ6
P_tmpdir: /tmp
$
$ cat p.m
printf ("tempdir: %s\n", tempdir ());
printf ("tempname: %s\n", tempname ());
printf ("P_tmpdir: %s\n", P_tmpdir ());
$


Octave version:

$ cat .hg_archival.txt
repo: 22412e3a4641782b0dc45cf256bceb9c3984b154
node: f812dd8304d982e09c48a2cc688a3a36127500d0
branch: default
latesttag: rc-8-0-90
latesttagdistance: 21





This problem has been fixed in the development version. The fix
will be available in the next major software release. Thank you
for your bug report.



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63728>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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