bugGNU Octave - Bugs: bug #50593, version-rcfile: startup error...

 
 

bug #50593: version-rcfile: startup error 'startup' undefined near line 31 column 3

Submitted by:  Ernst Reissner <ernstreissner>
Submitted on:  Mon 20 Mar 2017 12:54:35 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Mon 20 Mar 2017 04:43:25 PM UTC, comment #1:

I checked in a change on the stable branch that prevents this (http://hg.savannah.gnu.org/hgweb/octave/rev/c0bfb20b0457). I just looked at the return code from exist to make sure that what it had found was a file rather than a directory.

I checked in another change that makes Octave look only for the file "startup.m" (http://hg.savannah.gnu.org/hgweb/octave/rev/af5e8bfe03ad). This is more correct because that is the name Matlab requires.

Rik <rik5>
Project Administrator
Mon 20 Mar 2017 12:54:35 PM UTC, original submission:

When starting octave in /usr/local/share/octave/4.3.0+/m,
(or according),
there is a directory startup.

In file scripts/startup/version-rcfile, we find

If we start octave with octave --no-gui -V, i.e. verbose,
we obtain: error: 'startup' undefined near line 31 column 3

Line31 refers to version-rcfile.

To avoid this, let us write if (exist ("startup", "file") && ~exist ("startup", "dir")

Ernst Reissner <ernstreissner>

 

(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 (Posted a comment)
  • -unavailable- added by ernstreissner (Submitted the item)
  • -unavailable- added by ernstreissner
  •  

    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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 20 Mar 2017 04:43:25 PM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Mon 20 Mar 2017 12:54:35 PM UTCernstreissnerCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1