aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-07-20 11:14:57 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-07-20 11:14:57 +0300
commit20aef26f311cc04550cc188e237c9288d5fb7b72 (patch)
treeef6953f3b0220f6abaa20f383049111e158c2d0b /tests
parentac180a94ff749f5df7705279d3d08258417b9b34 (diff)
downloadsciteco-20aef26f311cc04550cc188e237c9288d5fb7b72.tar.gz
document bug: you cannot currently use `{` and `}` to insert anything after $$ into the commandline
Diffstat (limited to 'tests')
-rw-r--r--tests/testsuite.at10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/testsuite.at b/tests/testsuite.at
index 2c9bec9..a199f62 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -545,7 +545,15 @@ AT_CLEANUP
AT_SETUP([Rub out from empty string argument])
# Should rub out the modifiers as well.
+# Will currently fail because it tries to execute `:@{`.
TE_CHECK_CMDLINE([[:@^Ua/]]TE_RUBOUT_WORD[[{Z"N(0/0)'}]], 0, ignore, stderr)
-AT_CHECK([[$GREP "^Error:" stderr]], 0, ignore ignore)
+AT_CHECK([[! $GREP "^Error:" stderr]], 0, ignore, ignore)
+AT_XFAIL_IF(true)
+AT_CLEANUP
+
+AT_SETUP([Command-line termination])
+# Everything after the $$ should be preserved.
+TE_CHECK_CMDLINE([[{@I/$$1234=/}]], 0, stdout, ignore)
+AT_CHECK([[$GREP "1234" stdout]], 0, ignore, ignore)
AT_XFAIL_IF(true)
AT_CLEANUP