mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-27 19:53:36 +08:00
27 lines
567 B
Fish
27 lines
567 B
Fish
|
# RUN: %fish %s
|
||
|
|
||
|
# Empty commands should be 123
|
||
|
set empty_var
|
||
|
$empty_var
|
||
|
echo $status
|
||
|
# CHECK: 123
|
||
|
# CHECKERR: {{.*}} The expanded command was empty.
|
||
|
# CHECKERR: $empty_var
|
||
|
# CHECKERR: ^
|
||
|
|
||
|
# Failed expansions
|
||
|
echo "$abc["
|
||
|
echo $status
|
||
|
# CHECK: 121
|
||
|
# CHECKERR: {{.*}} Invalid index value
|
||
|
# CHECKERR: echo "$abc["
|
||
|
# CHECKERR: ^
|
||
|
|
||
|
# Failed wildcards
|
||
|
echo *gibberishgibberishgibberish*
|
||
|
echo $status
|
||
|
# CHECK: 124
|
||
|
# CHECKERR: {{.*}} No matches for wildcard '*gibberishgibberishgibberish*'. {{.*}}
|
||
|
# CHECKERR: echo *gibberishgibberishgibberish*
|
||
|
# CHECKERR: ^
|