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

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

[Octave-bug-tracker] [bug #50183] tempname() returns an empty string on


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #50183] tempname() returns an empty string on Solaris
Date: Thu, 2 Mar 2017 20:37:27 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0

Follow-up Comment #20, bug #50183 (project octave):

Hmm, it works for me on your system.

Assuming we're talking about the same instance of Octave here,


$ export HOME=/export/home/miller
$ export LD_LIBRARY_PATH=$HOME/libs
$ env -i HOME=$HOME LD_LIBRARY_PATH=$LD_LIBRARY_PATH ~/octave/bin/octave-cli
--silent
octave:1> tempname
ans = /var/tmp/oct-0OS2cb
octave:2> tempname
ans = /var/tmp/oct-AoK2Sj
octave:3> P_tmpdir
ans = /var/tmp/
octave:4> tempdir
ans = /var/tmp/
octave:5> setenv TMPDIR /tmp
octave:6> tempdir
ans = /tmp/
octave:7> tempname
ans = /var/tmp/oct-IXXiPZ
octave:8> tempname (tempdir)
ans = /tmp/oct-vs3FFj


Command 7 is the old behavior, in Octave 4.2 this should return a file under
/tmp instead of /var/tmp.

Other than that, everything seems to be working for me with my account /
environment / permissions.

What does this script look like for you?


tempname
tempname
P_tmpdir
tempdir
setenv TMPDIR /tmp
tempdir
tempname
tempname (tempdir)
tempname (P_tmpdir)


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?50183>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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