Files
fish-shell/tests/checks/print-help.fish
Nahor 30e6aa85e2 error rewrite: use new Error to report errors
To homogenize error reporting format, use a new Error struct. Currently this
is used for builtins and ensuring a common cmd/subcmd prefix.

Part of #12556
2026-04-08 14:11:31 +08:00

17 lines
430 B
Fish

# RUN: %fish %s
# REQUIRES: command -v man
# Test redirecting builtin help with a pipe
# help should be redirected to grep instead of appearing on STDOUT
builtin and --help 2>| grep -q "Documentation for and"
echo $status
#CHECK: 0
function __fish_print_help
return 2
end
builtin and --help
# CHECKERR: and: missing man page
# CHECKERR: Documentation may not be installed.
# CHECKERR: `help and` will show an online version