mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 06:13:20 +00:00
25 lines
919 B
Fish
25 lines
919 B
Fish
|
# RUN: %fish -C 'set -g fish %fish' %s
|
||
|
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: ^
|
||
|
|
||
|
exit 0
|