[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #46002] After, LIST = ls (...) each row of LI
From: |
Lachlan Andrew |
Subject: |
[Octave-bug-tracker] [bug #46002] After, LIST = ls (...) each row of LIST is an output row, not a filename |
Date: |
Sat, 19 Sep 2015 00:56:38 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?46002>
Summary: After, LIST = ls (...) each row of LIST is an
output row, not a filename
Project: GNU Octave
Submitted by: lachlan
Submitted on: Sat 19 Sep 2015 12:56:37 AM GMT
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: Lachlan
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.0.0
Operating System: GNU/Linux
_______________________________________________________
Details:
Running
help ls
states that: _If the optional output LIST is requested then 'ls' returns a
character array with one row for each file/directory name._
However, ls (without -l) returns multiple filenames per row:
octave:1> a = ls;
octave:2> a(1,:)
ans = PKG_ADD laplace_inv.m
I've attached a simple patch. If someone using unix supply their own
__ls_command_ that didn't understand -1, it would break. A more thorough
solution is to have two __ls_command__ variables: one to produce screen-ready
output (columnated or otherwise) and the other to produce the character
array.
Any suggestions?
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sat 19 Sep 2015 12:56:37 AM GMT Name: ls.patch Size: 337B By:
lachlan
<http://savannah.gnu.org/bugs/download.php?file_id=34925>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?46002>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #46002] After, LIST = ls (...) each row of LIST is an output row, not a filename,
Lachlan Andrew <=