mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 18:03:37 +08:00
fixup! Show an error when "builtin -h" fails to find a man page
This commit is contained in:
parent
f9e131aa93
commit
efcfec0ba1
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user