mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-26 02:51:16 -03:00
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
17 lines
430 B
Fish
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
|