No, actually, I hadn't meant that, but I certainly don't object.
On 01/01/2020 21:39, Blake McBride wrote:
I hope you mean:
Index: src/main.cc
===================================================================
--- src/main.cc (revision 1210)
+++ src/main.cc (working copy)
@@ -425,6 +425,7 @@
CERR << "executing --LX '" << lx << "'" << endl;
Command::process_line(lx);
+ if (uprefs.auto_OFF)
+ Command::cmd_OFF(0);
}
(Putting a newline between an "if" condition and the statement means
you can put a breakpoint on the condition.)
Thanks.
Blake
On Wed, Jan 1, 2020 at 8:33 PM Chris Moller <mol...@mollerware.com
<mailto:mol...@mollerware.com>> wrote:
Hi, Jürgen,
A really minor request:
Index: src/main.cc
===================================================================
--- src/main.cc (revision 1210)
+++ src/main.cc (working copy)
@@ -425,6 +425,7 @@
CERR << "executing --LX '" << lx << "'" << endl;
Command::process_line(lx);
+ if (uprefs.auto_OFF) Command::cmd_OFF(0);
}
// maybe )LOAD the CONTINUE or SETUP workspace. Do that unless
the user
What this does, obviously, is allow command-line one-liners like,
for example:
apl --OFF -s --LX "((4 5 6)+(7 8 9))÷2"
Without the patch, apl just goes into accepting-input mode; with
it, apl can be used, for example, to evaluate expressions in scripts:
VAL=`apl --OFF -s --LX "((4 5 6)+(7 8 9))÷2"`
Thanks,
Chris Moller