fixup! Show an error when "builtin -h" fails to find a man page

This commit is contained in:
Johannes Altmanninger 2021-03-15 23:12:35 +01:00
parent f9e131aa93
commit efcfec0ba1
2 changed files with 7 additions and 0 deletions

View File

@ -113,22 +113,28 @@ echo comment after conjunction
# --help works
builtin and --help >/dev/null
# CHECKERR: fish: Missing man page {{.*}}
echo $status
and --help >/dev/null
# CHECKERR: fish: Missing man page {{.*}}
echo $status
# CHECK: 0
# CHECK: 0
builtin or --help >/dev/null
# CHECKERR: fish: Missing man page {{.*}}
echo $status
or --help >/dev/null
# CHECKERR: fish: Missing man page {{.*}}
echo $status
# CHECK: 0
# CHECK: 0
builtin not --help >/dev/null
# CHECKERR: fish: Missing man page {{.*}}
echo $status
not --help >/dev/null
# CHECKERR: fish: Missing man page {{.*}}
echo $status
# CHECK: 0
# CHECK: 0

View File

@ -241,6 +241,7 @@ echo 7 $status # no passthrough
#CHECK: 7 4
false
set -h >/dev/null
# CHECKERR: fish: Missing man page {{.*}}
echo 8 $status # no passthrough
#CHECK: 8 0
true