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

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

[Octave-bug-tracker] [bug #56700] unzip with one argument does not unzip


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #56700] unzip with one argument does not unzip to the current working directory
Date: Wed, 31 Jul 2019 14:54:47 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36

Update of bug #56700 (project octave):

                Severity:              3 - Normal => 2 - Minor              
                  Status:                    None => Confirmed              
                 Summary:          Unzip from URL => unzip with one argument
does not unzip to the current working directory

    _______________________________________________________

Follow-up Comment #1:

This looks to me like a symptom of a larger class: unzip with one argument
does not unzip contents to the current working directory, but to the parent
directory of the zip file. Doesn't matter if that's a URL or a local file
name.

The following


unzip ("/home/user/foo.zip")


extracts the contents of the zip file into /home/user, not into the current
working directory. And the following


unzip ("/usr/lib/jvm/default-java/lib/src.zip")


fails with a permission denied error. But


unzip ("/usr/lib/jvm/default-java/lib/src.zip", pwd)


works as expected.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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