bugGNU Octave - Bugs: bug #38019, 'which' behavior doesn't match...

 
 

bug #38019: 'which' behavior doesn't match Matlab when used with '-all' and only one is found

Submitter:  None
Submitted:  Wed 02 Jan 2013 11:16:02 PM UTC
   
 
Category:  Libraries Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Duplicate Assigned to:  None
Originator Name:  Warren Schudy Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.6.2
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 03 Jan 2013 02:33:58 AM UTC, comment #1: 

Oops this is a duplicate of https://savannah.gnu.org/bugs/?32088 .

Warren

Anonymous
Wed 02 Jan 2013 11:16:02 PM UTC, original submission:  

According to
http://www.mathworks.com/help/matlab/ref/which.html
Matlab's which, when used with the '-all' option, should always return a cell array of strings, even if only one item is returned. Octave seems to return a string rather than a cell array if there's only one item. For example:

octave:1> returned = which('which','-all')
returned = /usr/share/octave/3.6.2/m/help/which.m
octave:2> class(returned)
ans = char
octave:3> length(returned)
ans =  38

I'm using Octave 3.6.2 from the Ubuntu package repository on a Linux Mint virtual machine.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Updated the item)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-01-03 rik5 StatusNone Duplicate
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code