diff options
| author | Ville Skyttä <ville.skytta@iki.fi> | 2011-07-10 15:25:23 +0300 |
|---|---|---|
| committer | Ville Skyttä <ville.skytta@iki.fi> | 2011-07-10 15:25:23 +0300 |
| commit | 102a19c8a29e80e34b83391fa473e8c3d4cf582d (patch) | |
| tree | eca3ab51150f519ee840bc90d73ebb9a0266ce85 /test | |
| parent | 525d6e77ba1fe30e58761cee6aa1b88978a8f77d (diff) | |
| download | bash-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.exp | 4 |
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 |
