summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2011-07-10 15:25:23 +0300
committerVille Skyttä <ville.skytta@iki.fi>2011-07-10 15:25:23 +0300
commit102a19c8a29e80e34b83391fa473e8c3d4cf582d (patch)
treeeca3ab51150f519ee840bc90d73ebb9a0266ce85 /test
parent525d6e77ba1fe30e58761cee6aa1b88978a8f77d (diff)
downloadbash-completion-102a19c8a29e80e34b83391fa473e8c3d4cf582d.tar.gz
_parse_help: Treat " or " as a separator when parsing options.
Diffstat (limited to 'test')
-rw-r--r--test/unit/_parse_help.exp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/_parse_help.exp b/test/unit/_parse_help.exp
index c087562f..a6d58d5a 100644
--- a/test/unit/_parse_help.exp
+++ b/test/unit/_parse_help.exp
@@ -125,5 +125,9 @@ set cmd {fn() { printf '%s\n' "--foo."; }; _parse_help fn}
assert_bash_list "--foo" $cmd "--foo."
sync_after_int
+set cmd {fn() { printf '%s\n' "-f or --foo"; }; _parse_help fn}
+assert_bash_list "--foo" $cmd "-f or --foo"
+sync_after_int
+
teardown