[Top][All Lists]

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

[Octave-bug-tracker] [bug #37520] run() does not execute functions

From: anonymous
Subject: [Octave-bug-tracker] [bug #37520] run() does not execute functions
Date: Sun, 07 Oct 2012 14:10:30 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1


                 Summary: run() does not execute functions
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Sun 07 Oct 2012 02:10:29 PM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: Clemens Buchacher
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.1
        Operating System: Any



Tested on computer('arch'): mingw32-i686 and gnu-linux-x84_64.

$ cat <<EOF >mypath.m
function mypath()
$ octave
> run('mypath.m')

Expected result: Writes "hi" to stdout. (Tested with Matlab R2011b)
Actual result: No output.

I think run'ing functions is a lot more useful than run'ing scripts due to the
unpredictable effect of scripts on the caller's variables.

Forgot to check if Matlab allows passing arguments as well.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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