|
From: | Markus Mützel |
Subject: | [Octave-bug-tracker] [bug #60886] Command line option '--gui' ignored when used together with '--path' |
Date: | Tue, 6 Jul 2021 12:03:47 -0400 (EDT) |
User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36 Edg/91.0.864.64 |
Follow-up Comment #2, bug #60886 (project octave): That is most probably due to this pattern in the `main` function in main.in.cc: https://hg.savannah.gnu.org/hgweb/octave/file/2bb72743d3eb/src/main.in.cc#l335 else if (! strcmp (argv[i], "--eval") || (strlen (argv[i]) > 0 && argv[i][0] != '-')) { eval_code = true; new_argv[k++] = argv[i]; } [...] if (start_gui && eval_code && ! persist_octave) start_gui = false; So, if any of the command line parameters does *not* start with "-" it is treated as code to be evaluated. `eval_code` is set to `true` in that case. The next condition overrides the GUI setting if `eval_code` is `true`. I'm not sure if this is an error in that function or in the documentation. (The syntax with `=` is working.) _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?60886> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |