diff options
| author | Ville Skyttä <ville.skytta@iki.fi> | 2011-06-18 15:44:43 +0300 |
|---|---|---|
| committer | Ville Skyttä <ville.skytta@iki.fi> | 2011-06-18 15:44:43 +0300 |
| commit | a52c4ea382814cb958cfd432d04ce6fc9f09a84f (patch) | |
| tree | 4aab27b16ee9bfff814b2763f69a0f9aa96687d9 /test | |
| parent | 50a0506c5bf3e7873485ec595c59a4d7e80968d2 (diff) | |
| download | bash-completion-a52c4ea382814cb958cfd432d04ce6fc9f09a84f.tar.gz | |
__parse_options: Remove trailing [().]* from completions.
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 ef28d416..c087562f 100644 --- a/test/unit/_parse_help.exp +++ b/test/unit/_parse_help.exp @@ -121,5 +121,9 @@ set cmd {fn() { printf '%s\n' "-f [FOO], --foo[=FOO]"; }; _parse_help fn} assert_bash_list "--foo" $cmd "-f \[FOO\], --foo\[=FOO\]" sync_after_int +set cmd {fn() { printf '%s\n' "--foo."; }; _parse_help fn} +assert_bash_list "--foo" $cmd "--foo." +sync_after_int + teardown |
