diff options
Diffstat (limited to 'test/unit/_parse_help.exp')
-rw-r--r-- | test/unit/_parse_help.exp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/_parse_help.exp b/test/unit/_parse_help.exp index a6d58d5a..43c5dc29 100644 --- a/test/unit/_parse_help.exp +++ b/test/unit/_parse_help.exp @@ -7,6 +7,7 @@ proc setup {} { proc teardown {} { assert_env_unmodified { /declare -f fn/d + /PIPESTATUS=/d } } @@ -129,5 +130,9 @@ set cmd {fn() { printf '%s\n' "-f or --foo"; }; _parse_help fn} assert_bash_list "--foo" $cmd "-f or --foo" sync_after_int +set cmd { printf '%s\n' "-f or --foo" | _parse_help - } +assert_bash_list "--foo" $cmd "from stdin" +sync_after_int + teardown |