mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-23 19:01:15 -03:00
This effectively disables "--help", replacing it with just a stand-in string. The upshot is that it makes the test suite immune to whether or not it can find the documentation - until now it needed to *not* find it, which is weird. (also it saves some useless lines) Fixes #11270
18 lines
461 B
Fish
18 lines
461 B
Fish
#RUN: %fish %s
|
|
# Tests for the "builtin" builtin/keyword.
|
|
builtin -q string; and echo String exists
|
|
#CHECK: String exists
|
|
builtin -q; and echo None exists
|
|
builtin -q string echo banana; and echo Some of these exist
|
|
#CHECK: Some of these exist
|
|
builtin -nq string
|
|
#CHECKERR: builtin: invalid option combination, --query and --names are mutually exclusive
|
|
echo $status
|
|
#CHECK: 2
|
|
|
|
builtin -- -q &| grep -q "Documentation for builtin"
|
|
echo $status
|
|
#CHECK: 0
|
|
|
|
exit 0
|