bugGNU Octave - Bugs: bug #45439, fullfile.m don't return result:...

 
 

bug #45439: fullfile.m don't return result: input missinterpreted

Submitter:  Mindaugas <embar>
Submitted:  Mon 29 Jun 2015 06:52:40 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Works For Me Assigned to:  None
Originator Name:  fullfile Open/Closed:  * Closed
Release:  * 4.0.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 30 Jun 2015 06:09:56 AM UTC, comment #4: 

Octave installed from
http://download.opensuse.org/repositories/science/openSUSE_13.2
Now fullfile works correctly:

fullfile ('/home/username', 'data')
ans = /home/username/data

Yes, that error was because of including some paths:

>> which strjoin

'strjoin' is a function from the file /opt/MATLAB/R2014a/toolbox/eeglab/plugins/Cleanline1.02/external/bcilab_partial/dependencies/PropertyGrid-2010-09-16-mod/strjoin.m

So you can close bug as invalid.

Mindaugas <embar>
Tue 30 Jun 2015 02:27:29 AM UTC, comment #3: 

To the OP:

What does


which strjoin


tell you?  I suspect you have some other version ahead of the one from Octave in your path.  Octave's strjoin function in 4.0.0 has a comment at line 14 and doesn't call validateattributes at all.

John W. Eaton <jwe>
Group administrator
Mon 29 Jun 2015 11:48:48 PM UTC, comment #2: 

That's just weird.  Is it a self-compiled version of Octave or one from the openSUSE repositories?

On Kubuntu 12.04 it works just fine.


fullfile ('/home/username', 'data')
ans = /home/username/data


And it works with cell inputs too.


fullfile ("/home/username", "data", {"f1.csv", "f2.csv", "f3.csv"})
ans =
{
  [1,1] = /home/username/data/f1.csv
  [1,2] = /home/username/data/f2.csv
  [1,3] = /home/username/data/f3.csv
}


What happens if you try to execute the built-in self tests with the following code?


test ("fullfile")



Rik <rik5>
Group administrator
Mon 29 Jun 2015 09:46:34 PM UTC, comment #1: 

On Windows with 4.0.0 (release) and 4.1.0+ (dev version) I get this:

>> fullfile ('/home/username', 'data')
ans = \home\username\data
>>


Later on I can test on Linux

Philip Nienhuis <philipnienhuis>
Group Member
Mon 29 Jun 2015 06:52:40 PM UTC, original submission:  

fullfile ('/home/username', 'data')
error: input must be of class:

  char

but was of class cell
error: called from
    validateattributes at line 222 column 5
    strjoin at line 14 column 1
    fullfile at line 61 column 14



-------

Acording Octave documentation,expected result:

fullfile ("/home/username", "data", {"f1.csv", "f2.csv", "f3.csv"})
          =>  /home/username/data/f1.csv
              /home/username/data/f2.csv
              /home/username/data/f3.csv


-------

Tested in openSUSE 13.2 (Linux) 64-bit system

Mindaugas <embar>

 

(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 mtmiller (Updated the item)
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by embar (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
    2015-06-30 mtmiller Open/ClosedOpen Closed
    2015-06-29 rik5 StatusNone Works For Me

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code