help-octave
[Top][All Lists]
Advanced

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

Executable Octave script: odd behavior when called with option ‘-display


From: Bernd Lütkenhöner
Subject: Executable Octave script: odd behavior when called with option ‘-display’
Date: Fri, 14 Sep 2018 20:47:16 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

Hi


Trying to call an executable Octave script with the option -display I found an odd behavior. This behavior can already be found in the trivial script ‘hello’:

#! /usr/bin/octave -qf
disp('Hello world');

Calling this script as
./hello
./hello -disp xyz
./hello -display

yields, as expected, the output ‘Hello world’. However, no output appears if I call the script as
./hello -display xyz
I could easily avoid the problem by changing, in my software, the name of the option (e.g. ‘disp’ instead of ‘display’). However, I am curious to understand what goes wrong.

My Octave version is 4.2.2 (running under Ubuntu).


---
Bernd

reply via email to

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