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

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

[Octave-bug-tracker] [bug #58326] canonicalize_file_name returns empty o


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #58326] canonicalize_file_name returns empty on file names starting with tilde
Date: Thu, 7 May 2020 13:14:46 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0

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

                 Summary: canonicalize_file_name returns empty on file names
starting with tilde
                 Project: GNU Octave
            Submitted by: philipnienhuis
            Submitted on: Thu 07 May 2020 07:14:45 PM CEST
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Philip Nienhuis
        Originator Email: 
             Open/Closed: Open
                 Release: 6.0.90
         Discussion Lock: Any
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Subject says all, but as an example;

>> pwd
ans = /home/philip
>> canonicalize_file_name ('./.bashrc')
ans = /home/philip/.bashrc
>> canonicalize_file_name ('~/.bashrc')
ans =


This is also broken on dev Octave.

I hit this while debugging pkg.m in order to find out why "pkg local_list
<some_file>' didn't work - pkg.m always returns empty when queried afterwards
for 'local_list'. The cause turned out to be the call to
canonicalize_file-name on L.574 (and for that matter, L.594 but for
global_list it shouldn't matter).
Would make_absolute_filename be a better alternative?





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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