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

Submitted by:  None
Submitted on:  Wed 02 Jan 2013 11:16:02 PM UTC  
 
Category: LibrariesSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: DuplicateAssigned to: None
Originator Name: Warren SchudyOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 3.6.2
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 03 Jan 2013 04:38:53 AM UTCrik5StatusNone=>Duplicate
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1