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

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

[Octave-bug-tracker] [bug #43844] tmpnam() always uses default directory


From: John Donoghue
Subject: [Octave-bug-tracker] [bug #43844] tmpnam() always uses default directory for temporary files on Windows
Date: Thu, 18 Dec 2014 18:18:28 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko

Follow-up Comment #1, bug #43844 (project octave):

octave uses the systems tempnam function which says it uses the dir if
environment variable TMP is not set.

On my windows machine:

>> pwd
ans = C:\Users\john
>> getenv('TMP')
ans = C:\Users\john\AppData\Local\Temp
>> tempname(pwd())
ans = C:\Users\john\AppData\Local\Temp\oct-2
>> setenv('TMP','')
>> tempname(pwd())
ans = C:\Users\john\oct-3
>>

I tried on Matlab 2013, and it uses the input name, regardless of whether it
is a valid directory, character etc.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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