|
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
#! /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] |