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

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

[Octave-bug-tracker] [bug #44007] test tar changes working directory in


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #44007] test tar changes working directory in MXE-Octave ver 4.1.0+
Date: Tue, 10 Mar 2015 19:46:58 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0 SeaMonkey/2.30

Follow-up Comment #26, bug #44007 (project octave):

To illustrate the differences between bsdtar and msys tar:
msys (GNU) tar:

>> cmd2 = 'tar_orig cvf /c/Users/philip/AppData/Local/Temp/oct-bPYuAk.tar -C .
dir2 f1';
>> [status, output] = system (cmd2);
>> output
output = dir2/
dir2/f2
f1
>>


bsdtar:

>> cmd = 'tar cvf C:\Users\philip\AppData\Local\Temp\oct-bPYuAk.tar -C . dir2
f1';
>> [status, output] = system (cmd);
a dir2
a dir2/f2
a f1
>> output
output =
>>

It turns out bsdtar echoes the file list to stderr rather than stdout,
apparently with archive "flagbits" prepended.
Is there a way to catch stderr using Octave's "system" command?



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?44007>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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