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

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

[Octave-bug-tracker] [bug #58547] gzip() does not handle relative paths


From: Kai Torben Ohlhus
Subject: [Octave-bug-tracker] [bug #58547] gzip() does not handle relative paths in first argument correctly
Date: Fri, 12 Jun 2020 02:14:59 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36

Update of bug #58547 (project octave):

                  Status:                    None => Patch Submitted        
                 Release:                   5.2.0 => 6.0.90                 

    _______________________________________________________

Follow-up Comment #1:

Confirmed.  Octave 5 is no longer under development => change release to
Octave 6 (bug also present in Octave 7).

All tests performed on openSUSE 15.1 manually compiled Octave versions.


% Setup
mkdir ('foo/bar');
A = rand (4);
save foo/A.mat     A
save foo/bar/B.mat A



% Matlab R2019a
gzip ('foo')      % [1] creates foo/A.mat.gz
                  %         and foo/bar/B.mat.gz
gzip ('foo/bar')  % [2] creates foo/bar/B.mat.gz

gzip ('foo',     'outdir') % [3] creates outdir/A.mat.gz
                           %         and outdir/B.mat.gz
gzip ('foo/bar', 'outdir') % [4] creates outdir/B.mat.gz


In Octave 5.2.0, 6, and 7 (compiled today):

- calls [1] and [2] work
- calls [3] and [4] not (an empty directory "outdir" is created for each
call)

Had no time to try your patch yet.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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