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

 
 

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

Submitted by:  Mindaugas <embar>
Submitted on:  Mon 29 Jun 2015 06:52:40 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Regression
Status: Works For MeAssigned to: None
Originator Name: fullfileOpen/Closed: Closed
Release: 4.0.0Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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

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>
Project 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.

And it works with cell inputs too.

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

Rik <rik5>
Project 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:

Later on I can test on Linux

Philip Nienhuis <philipnienhuis>
Project 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 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 mtmiller (Updated the item)
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by embar (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
    Tue 30 Jun 2015 01:15:30 PM UTCmtmillerOpen/ClosedOpen=>Closed
    Mon 29 Jun 2015 11:48:48 PM UTCrik5StatusNone=>Works For Me

    Back to the top


    Powered by Savane 3.1-cleanup1