From a07512149088ec8bb47d16ed8fbbfdefd4745626 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sun, 26 Jul 2026 01:20:15 +0200 Subject: implemented E*q to store the last command line `*q` can only be used at the very beginning of the command line. We cannot support it everywhere as Video TECO did since we do not follow the operators in parse-only mode. `E*q` is a replacement, so you can store the previous command line at any later point. This also adds a test case. --- tests/testsuite.at | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/testsuite.at') diff --git a/tests/testsuite.at b/tests/testsuite.at index cbb12d4..db2465f 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -474,6 +474,13 @@ TE_CHECK_CMDLINE([[{0EE 255@I//}]], 0, ignore, stderr) AT_FAIL_IF([! $GREP "^Error:" stderr]) AT_CLEANUP +AT_SETUP([Save last command-line]) +TE_CHECK_CMDLINE([[!hello!$$*m :Gm]], 0, stdout, ignore) +AT_FAIL_IF([! $GREP "!hello!" stdout]) +TE_CHECK_CMDLINE([[!hello!$$ E*m :Gm]], 0, stdout, ignore) +AT_FAIL_IF([! $GREP "!hello!" stdout]) +AT_CLEANUP + AT_BANNER([Standard library]) AT_SETUP([Option parser]) -- cgit v1.2.3