mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-24 23:04:22 +08:00
8bf8b10f68
See the changelog additions for user-visible changes. Since we enable/disable terminal protocols whenever we pass terminal ownership, tests can no longer run in parallel on the same terminal. For the same reason, readline shortcuts in the gdb REPL will not work anymore. As a remedy, use gdbserver, or lobby for CSI u support in libreadline. Add sleep to some tests, otherwise they fall (both in CI and locally). There are two weird failures on FreeBSD remaining, disable them for now https://github.com/fish-shell/fish-shell/pull/10359/checks?check_run_id=23330096362 Design and implementation borrows heavily from Kakoune. In future, we should try to implement more of the kitty progressive enhancements. Closes #10359
44 lines
1.5 KiB
Fish
44 lines
1.5 KiB
Fish
# RUN: %fish -C 'set -g fish %fish' %s | %filter-ctrlseqs
|
|
set -g PATH
|
|
$fish -c "nonexistent-command-1234 banana rama"
|
|
#CHECKERR: fish: Unknown command: nonexistent-command-1234
|
|
#CHECKERR: fish:
|
|
#CHECKERR: nonexistent-command-1234 banana rama
|
|
#CHECKERR: ^~~~~~~~~~~~~~~~~~~~~~~^
|
|
$fish -C 'function fish_command_not_found; echo cmd-not-found; end' -ic "nonexistent-command-1234 1 2 3 4"
|
|
#CHECKERR: cmd-not-found
|
|
#CHECKERR: fish:
|
|
#CHECKERR: nonexistent-command-1234 1 2 3 4
|
|
#CHECKERR: ^~~~~~~~~~~~~~~~~~~~~~~^
|
|
$fish -C 'function fish_command_not_found; echo command-not-found $argv; end' -c "nonexistent-command-abcd foo bar baz"
|
|
#CHECKERR: command-not-found nonexistent-command-abcd foo bar baz
|
|
#CHECKERR: fish:
|
|
#CHECKERR: nonexistent-command-abcd foo bar baz
|
|
#CHECKERR: ^~~~~~~~~~~~~~~~~~~~~~~^
|
|
|
|
$fish -C 'functions --erase fish_command_not_found' -c 'nonexistent-command apple friday'
|
|
#CHECKERR: fish: Unknown command: nonexistent-command
|
|
#CHECKERR: nonexistent-command apple friday
|
|
#CHECKERR: ^~~~~~~~~~~~~~~~~~^
|
|
|
|
command -v nonexistent-command-1234
|
|
echo $status
|
|
#CHECK: 127
|
|
|
|
|
|
{ echo; echo }
|
|
# CHECKERR: {{.*}}: Unknown command: '{ echo; echo }'
|
|
# CHECKERR: {{.*}}: '{ ... }' is not supported for grouping commands. Please use 'begin; ...; end'
|
|
# CHECKERR: { echo; echo }
|
|
# CHECKERR: ^~~~~~~~~~~~~^
|
|
|
|
set -g PATH .
|
|
echo banana > foobar
|
|
foobar --banana
|
|
# CHECKERR: checks/command-not-found.fish (line {{\d+}}): Unknown command. './foobar' exists but is not an executable file.
|
|
# CHECKERR: foobar --banana
|
|
# CHECKERR: ^~~~~^
|
|
|
|
|
|
exit 0
|