2018-11-23 09:52:07 +08:00
|
|
|
|
|
|
|
####################
|
|
|
|
# Slices
|
2018-11-28 22:27:21 +08:00
|
|
|
fish: Invalid index value
|
2017-03-26 20:38:59 +08:00
|
|
|
echo "$foo[d]"
|
|
|
|
^
|
2018-11-28 22:27:21 +08:00
|
|
|
fish: Invalid index value
|
2017-03-26 20:38:59 +08:00
|
|
|
echo $foo[d]
|
|
|
|
^
|
2018-11-28 22:27:21 +08:00
|
|
|
fish: Invalid index value
|
2017-03-26 20:38:59 +08:00
|
|
|
echo ()[d]
|
|
|
|
^
|
2017-08-04 12:37:02 +08:00
|
|
|
|
2018-10-11 05:26:29 +08:00
|
|
|
####################
|
|
|
|
# Percent self
|
|
|
|
|
2017-08-04 12:37:02 +08:00
|
|
|
####################
|
|
|
|
# Catch your breath
|
2018-11-28 22:27:21 +08:00
|
|
|
fish: $) is not a valid variable in fish.
|
2017-03-26 20:38:59 +08:00
|
|
|
echo $$paren
|
|
|
|
^
|
2017-08-04 12:37:02 +08:00
|
|
|
|
|
|
|
####################
|
|
|
|
# Test tilde expansion
|
2018-10-01 07:34:01 +08:00
|
|
|
|
|
|
|
####################
|
2018-10-07 11:22:35 +08:00
|
|
|
# Test path variables
|
2019-04-12 12:59:23 +08:00
|
|
|
|
|
|
|
####################
|
|
|
|
# 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 {}}
|
|
|
|
^
|
|
|
|
|
2019-04-18 21:12:25 +08:00
|
|
|
fish: Command substitutions not allowed
|
|
|
|
command (asd)
|
2019-10-05 02:28:47 +08:00
|
|
|
^
|