aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-05-15 17:10:29 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-05-15 17:56:12 -0700
commit534fd1a59e1fc956cc15f1bdad3dc008872ed184 (patch)
tree3277f43032dbc5a7d1933cd82ea0ba0119b1c9b7 /tests
parentcec1dc20956ece1d475641fcf59e0f46a92b8917 (diff)
Pass the character index, not the character, to parse_util_expand_variable_error
Fixes #2067
Diffstat (limited to 'tests')
-rw-r--r--tests/expansion.err3
-rw-r--r--tests/expansion.in4
-rw-r--r--tests/expansion.out1
3 files changed, 8 insertions, 0 deletions
diff --git a/tests/expansion.err b/tests/expansion.err
index e60c203d..5fcc58e0 100644
--- a/tests/expansion.err
+++ b/tests/expansion.err
@@ -28,3 +28,6 @@ fish: echo ()[1]
Invalid index value
fish: echo ()[d]
^
+$) is not a valid variable in fish.
+fish: echo $$paren
+ ^
diff --git a/tests/expansion.in b/tests/expansion.in
index b43fd3bf..2b6d9376 100644
--- a/tests/expansion.in
+++ b/tests/expansion.in
@@ -81,6 +81,10 @@ echo $foo[d]
echo ()[1]
echo ()[d]
+echo "Catch your breath"
+set paren ')'
+echo $$paren
+
# Test tilde expansion
# On OS X, /tmp is symlinked to /private/tmp
# $PWD is our best bet for resolving it
diff --git a/tests/expansion.out b/tests/expansion.out
index fe594539..9fd68a04 100644
--- a/tests/expansion.out
+++ b/tests/expansion.out
@@ -40,3 +40,4 @@
0
1
0
+Catch your breath