fish-shell/tests/test_builtinbuiltin.in
Fabian Homborg fb7a6e5f34 Add builtin -q
Used to query for a builtin's existence, like `type -q` and `functions
-q` can be used to query for a things and a functions existence respectively.
2019-02-12 20:34:19 +01:00

7 lines
217 B
Fish

# Tests for the "builtin" builtin/keyword.
builtin -q string; and echo String exists
builtin -q; and echo None exists
builtin -q string echo banana; and echo Some of these exist
builtin -nq string
echo $status
exit 0