[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #52095] tar, untar, and unpack errors and inco
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #52095] tar, untar, and unpack errors and incorrect output when TAR_OPTIONS in environment |
Date: |
Fri, 22 Sep 2017 19:30:55 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
URL:
<http://savannah.gnu.org/bugs/?52095>
Summary: tar, untar, and unpack errors and incorrect output
when TAR_OPTIONS in environment
Project: GNU Octave
Submitted by: mtmiller
Submitted on: Fri 22 Sep 2017 04:30:54 PM PDT
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
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
If the user environment variable TAR_OPTIONS is present containing options to
pass to the GNU tar command, it may make the tar, untar, and unpack functions
fail or output weird results.
For example
>> test tar
PASSES 6 out of 6 tests
>> setenv TAR_OPTIONS --create
>> test tar
unpack: unarchiving program exited with status: 2
tar: You may not specify more than one '-Acdtrux', '--delete' or
'--test-label' option
Try 'tar --help' or 'tar --usage' for more information.
PASSES 5 out of 6 tests (1 known failure)
or
>> a = tar ("foo.tar", "foo.txt")
a =
{
[1,1] = foo.txt
}
>> b = untar ("foo.tar")
b =
{
[1,1] = foo.txt
}
>> setenv TAR_OPTIONS --verbose
>> a = tar ("foo.tar", "foo.txt")
a =
{
[1,1] = -rw-r----- mike/mike 3 2017-09-22 16:27 foo.txt
}
>> b = untar ("foo.tar")
b =
{
[1,1] = -rw-r----- mike/mike 3 2017-09-22 16:27 foo.txt
}
In these functions, Octave is parsing the output of the tar command and
expecting it to behave in very specific ways, so I think it would be best to
clear and restore the value of TAR_OPTIONS.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?52095>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #52095] tar, untar, and unpack errors and incorrect output when TAR_OPTIONS in environment,
Mike Miller <=