bugGNU Octave - Bugs: bug #49647, octave foo.m vs. octave...

 
 

bug #49647: octave foo.m vs. octave /other/path/to/foo.m

Submitted by:  Muhali <muhali>
Submitted on:  Fri 18 Nov 2016 08:05:34 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Regression
Status: ConfirmedAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 18 Nov 2016 10:13:47 PM UTC, comment #2:

And this may be related to the fix for bug #33411. If the file does not exist in the current directory, then it has not already been seen by the parser, and it is sourced like the previous version of Octave. If it is in the current directory or otherwise in the load path, then it has already been parsed, and for some reason "source foo.m" instead invokes the function foo. That may have been an unintended consequence of the change

http://hg.savannah.gnu.org/hgweb/octave/rev/4c080cbc4ef9

Mike Miller <mtmiller>
Project Administrator
Fri 18 Nov 2016 10:06:19 PM UTC, comment #1:

I can confirm this difference / possible regression between 4.0.3 and 4.2.0.

I think this change can be explained by or is related to the following difference in behavior:

Mike Miller <mtmiller>
Project Administrator
Fri 18 Nov 2016 08:05:34 PM UTC, original submission:

with the simple

I get for `octave foo.m':

error: 'x' undefined near line 3 column 8
error: execution exception in foo.m

whereas no error occurs for `octave /tmp/foo.m'

the latter pointing to a copy of foo.m.

No errors occur for octave stable.

Muhali <muhali>

 

(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 amro_octave
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by muhali (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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 09 Dec 2016 11:25:13 PM UTCamro_octaveCarbon-Copy-=>Added amro_octave
    Fri 18 Nov 2016 10:06:19 PM UTCmtmillerCategoryNone=>Interpreter
      Item GroupNone=>Regression
      StatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1