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

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

[Octave-bug-tracker] [bug #50593] version-rcfile: startup error 'startup


From: Ernst Reissner
Subject: [Octave-bug-tracker] [bug #50593] version-rcfile: startup error 'startup' undefined near line 31 column 3
Date: Mon, 20 Mar 2017 08:54:36 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0

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

                 Summary: version-rcfile: startup error 'startup' undefined
near line 31 column 3
                 Project: GNU Octave
            Submitted by: ernstreissner
            Submitted on: Mon 20 Mar 2017 12:54:35 PM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

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 

## For Matlab compatibility, run startup.m when starting Octave.
if (exist ("startup", "file"))
  startup;  # No arg list here since startup might be a script.
endif


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")





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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