aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar Fabian Homborg <FHomborg@gmail.com>2016-05-19 16:48:45 +0200
committerGravatar Fabian Homborg <FHomborg@gmail.com>2016-05-23 19:59:02 +0200
commit309e10e7a2e9455f8e80898e290865a5d49ae1bd (patch)
tree735b3df0b8d91b0ae09522ae123bf3f95bf652e0 /tests
parentdc470bcad3905a19ce8e72ddf2c6c063ad99e450 (diff)
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/abbr.err1
-rw-r--r--tests/abbr.in2
2 files changed, 3 insertions, 0 deletions
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