mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-24 09:23:38 +08:00
ff18b2a09a
This didn't account for the path differing from when I ran the test manually. Sorry!
15 lines
429 B
Fish
15 lines
429 B
Fish
#RUN: %fish %s
|
|
function t --argument-names a b c
|
|
echo t
|
|
end
|
|
|
|
function t2 --argument-names a b c --no-scope-shadowing
|
|
echo t2
|
|
end
|
|
#CHECKERR: {{.*/?}}function.fish (line {{\d+}}): function: Variable name '--no-scope-shadowing' is not valid. See `help identifiers`.
|
|
#CHECKERR: function t2 --argument-names a b c --no-scope-shadowing
|
|
#CHECKERR: ^
|
|
|
|
functions -q t2 && echo exists || echo does not exist
|
|
#CHECK: does not exist
|