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: Sun, 29 Jan 2023 19:24:41 -0500 (EST)

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

                 Summary: tempname() respects the TMP environment variable and
tempdir() does not
                 Project: GNU Octave
               Submitter: None
               Submitted: Mon 30 Jan 2023 12:24:39 AM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 7.3.0
         Discussion Lock: Any
        Operating System: GNU/Linux
           Fixed Release: None
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Mon 30 Jan 2023 12:24:39 AM UTC By: Anonymous

$ unset TMP TMPDIR
$
$ ./t.m
ans = /tmp/oct-GypSGw
ans = /tmp/
$
$ env TMP=/tmp/new-tmp ./t.m
ans = /tmp/new-tmp/oct-q3bOs4
ans = /tmp/
$
$ env TMPDIR=/tmp/new-tmp ./t.m
ans = /tmp/new-tmp/oct-4pJLYK
ans = /tmp/new-tmp/
$
$ cat t.m
#!/usr/bin/env octave

tempname()
tempdir()
$


This causes some tests to fail.








    _______________________________________________________

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]