From 534fd1a59e1fc956cc15f1bdad3dc008872ed184 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Fri, 15 May 2015 17:10:29 -0700 Subject: Pass the character index, not the character, to parse_util_expand_variable_error Fixes #2067 --- tests/expansion.err | 3 +++ tests/expansion.in | 4 ++++ tests/expansion.out | 1 + 3 files changed, 8 insertions(+) (limited to 'tests') 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 -- cgit v1.2.3