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