From 309e10e7a2e9455f8e80898e290865a5d49ae1bd Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Thu, 19 May 2016 16:48:45 +0200 Subject: Don't mangle arguments in abbr This now (rightly) throws an error if there's a space in the key (because we can't store it). Fixes #2997. --- tests/abbr.err | 1 + tests/abbr.in | 2 ++ 2 files changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/abbr.err b/tests/abbr.err index 904a0fd4..13fdfd74 100644 --- a/tests/abbr.err +++ b/tests/abbr.err @@ -1 +1,2 @@ abbr: no such abbreviation 'NOT_AN_ABBR' +abbr: abbreviation cannot have spaces in the key diff --git a/tests/abbr.in b/tests/abbr.in index be828b08..b4f87049 100644 --- a/tests/abbr.in +++ b/tests/abbr.in @@ -35,3 +35,5 @@ abbr -e '--__abbr3' # Ensure we are not recognizing later "=" as separators abbr d2 env a=b banana abbr -l | string match -q d2; or echo "= test failed" + +abbr "a b c" "d e f"; or true -- cgit v1.2.3