summaryrefslogtreecommitdiffstats
path: root/test/t/unit/test_unit_realcommand.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/t/unit/test_unit_realcommand.py')
-rw-r--r--test/t/unit/test_unit_realcommand.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/t/unit/test_unit_realcommand.py b/test/t/unit/test_unit_realcommand.py
index 4eb7b73..a057788 100644
--- a/test/t/unit/test_unit_realcommand.py
+++ b/test/t/unit/test_unit_realcommand.py
@@ -88,3 +88,11 @@ class TestUnitRealCommand:
want_output=False,
)
assert output.strip() == ""
+
+ def test_option_like_cmd_name(self, bash, functions):
+ output = assert_bash_exec(
+ bash,
+ "! __tester --non-existent",
+ want_output=False,
+ )
+ assert output.strip() == ""