mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 14:23:09 +00:00
1e858eae35
This demonstrates that we only write control sequences when interactive.
17 lines
500 B
Fish
17 lines
500 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 "builtin - run a builtin command\|fish: builtin: missing man page"
|
|
echo $status
|
|
#CHECK: 0
|
|
|
|
exit 0
|