|
From: | Kai Torben Ohlhus |
Subject: | Re: Executable Octave script: odd behavior when called with option ‘-display’ |
Date: | Sat, 15 Sep 2018 17:59:56 +0200 |
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 xyzI 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
[Prev in Thread] | Current Thread | [Next in Thread] |