diff --git a/test/sharness/t0010-basic-commands.sh b/test/sharness/t0010-basic-commands.sh index e9db0c6c1..8fff34c45 100755 --- a/test/sharness/t0010-basic-commands.sh +++ b/test/sharness/t0010-basic-commands.sh @@ -65,8 +65,10 @@ test_expect_success "All commands accept --help" ' echo 0 > fail while read -r cmd do - $cmd --help /dev/null || + $cmd --help >/dev/null || { echo "$cmd doesnt accept --help"; echo 1 > fail; } + echo stuff | $cmd --help >/dev/null || + { echo "$cmd doesnt accept --help when using stdin"; echo 1 > fail; } done