fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Johannes AltmanningerMerge changes to config paths6d0cd3d9b

master
1.5 KiB43 linesraw
1#RUN: fish=%fish %fish %s
2__fish_theme_migrate # make sure the interactive fish doesn't need mkdir in PATH
3if __fish_is_cygwin
4    # The Cygwin/MSYS DLLs must be in the path, otherwise fish cannot be
5    # executed
6    set -g PATH /usr/bin
7else
8    set -g PATH
9end
10
11$fish -c "nonexistent-command-1234 banana rama"
12#CHECKERR: fish: Unknown command: nonexistent-command-1234
13#CHECKERR: fish:
14#CHECKERR: nonexistent-command-1234 banana rama
15#CHECKERR: ^~~~~~~~~~~~~~~~~~~~~~~^
16$fish -C 'function fish_command_not_found; echo cmd-not-found; end' -ic "nonexistent-command-1234 1 2 3 4"
17#CHECKERR: cmd-not-found
18#CHECKERR: fish:
19#CHECKERR: nonexistent-command-1234 1 2 3 4
20#CHECKERR: ^~~~~~~~~~~~~~~~~~~~~~~^
21$fish -C 'function fish_command_not_found; echo command-not-found $argv; end' -c "nonexistent-command-abcd foo bar baz"
22#CHECKERR: command-not-found nonexistent-command-abcd foo bar baz
23#CHECKERR: fish:
24#CHECKERR: nonexistent-command-abcd foo bar baz
25#CHECKERR: ^~~~~~~~~~~~~~~~~~~~~~~^
26
27$fish -C 'functions --erase fish_command_not_found' -c 'nonexistent-command apple friday'
28#CHECKERR: fish: Unknown command: nonexistent-command
29#CHECKERR: nonexistent-command apple friday
30#CHECKERR: ^~~~~~~~~~~~~~~~~~^
31
32command -v nonexistent-command-1234
33echo $status
34#CHECK: 127
35
36set -g PATH .
37echo banana >foobar
38foobar --banana
39# CHECKERR: {{.*}}checks/command-not-found.fish (line {{\d+}}): Unknown command. './foobar' exists but is not an executable file.
40# CHECKERR: foobar --banana
41# CHECKERR: ^~~~~^
42
43exit 0