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

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

[Octave-bug-tracker] [bug #60291] Function parameters not supported when


From: Lars Kindermann
Subject: [Octave-bug-tracker] [bug #60291] Function parameters not supported when calling from the shell
Date: Thu, 25 Mar 2021 21:00:45 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

URL:
  <https://savannah.gnu.org/bugs/?60291>

                 Summary: Function parameters not supported when calling from
the shell
                 Project: GNU Octave
            Submitted by: larskindermann
            Submitted on: Fri 26 Mar 2021 02:00:43 AM CET
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Feature Request
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: dev
         Discussion Lock: Any
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Calling an executable function "otest" from the shell 


#!/usr/bin/octave -qf
function out=otest(in)
nargin
argv
in


results in


$ ./otest foo
ans = 0
ans =
{
  [1,1] = foo
}

error: 'in' undefined near line 5, column 5
error: called from
    otest at line 5 column 1


Would it be difficult to pass the command line arguments to the function
arguments? This would greatly enhance the usability of Octave scripts for
shell programming.





    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60291>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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