mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-24 09:38:41 +08:00

Specifically, an invalid flag keeps the function from being defined but does not emit an error message. Fixes #2827
25 lines
337 B
Plaintext
25 lines
337 B
Plaintext
Testing -V
|
|
$foo: (1)
|
|
1: 'local foo'
|
|
$bar: (5)
|
|
1: 'one'
|
|
2: 'two 2'
|
|
3: ' '
|
|
4: ''
|
|
5: '3'
|
|
$baz: (0)
|
|
Testing -V with changed variables
|
|
$foo: (1)
|
|
1: 'local foo'
|
|
$bar: (5)
|
|
1: 'one'
|
|
2: 'two 2'
|
|
3: ' '
|
|
4: ''
|
|
5: '3'
|
|
$baz: (0)
|
|
Function name1 found
|
|
Function name2 not found as expected
|
|
Function name3 found
|
|
Function name4 not found as expected
|