mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 02:13:38 +08:00
014ab7935e
If there is a better way to do stuff that will stop execution than fish -c for our tests, please let me know.
42 lines
671 B
Plaintext
42 lines
671 B
Plaintext
|
|
####################
|
|
# Slices
|
|
fish: Invalid index value
|
|
echo "$foo[d]"
|
|
^
|
|
fish: Invalid index value
|
|
echo $foo[d]
|
|
^
|
|
fish: Invalid index value
|
|
echo ()[d]
|
|
^
|
|
|
|
####################
|
|
# Percent self
|
|
|
|
####################
|
|
# Catch your breath
|
|
fish: $) is not a valid variable in fish.
|
|
echo $$paren
|
|
^
|
|
|
|
####################
|
|
# Test tilde expansion
|
|
|
|
####################
|
|
# Test path variables
|
|
|
|
####################
|
|
# Test fatal syntax errors
|
|
fish: $, is not a valid variable in fish.
|
|
echo $,foo
|
|
^
|
|
fish: Unexpected end of string, incomplete parameter expansion
|
|
echo {
|
|
^
|
|
|
|
fish: Unexpected '}' for unopened brace expansion
|
|
echo {}}
|
|
^
|
|
|