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

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

[Octave-bug-tracker] [bug #38019] 'which' behavior doesn't match Matlab


From: anonymous
Subject: [Octave-bug-tracker] [bug #38019] 'which' behavior doesn't match Matlab when used with '-all' and only one is found
Date: Wed, 02 Jan 2013 23:16:03 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11

URL:
  <http://savannah.gnu.org/bugs/?38019>

                 Summary: 'which' behavior doesn't match Matlab when used with
'-all' and only one is found
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Wed 02 Jan 2013 11:16:02 PM UTC
                Category: Libraries
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: Warren Schudy
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.2
        Operating System: GNU/Linux

    _______________________________________________________

Details:

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.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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