diff options
author | Fabian Homborg <FHomborg@gmail.com> | 2016-01-07 21:32:16 +0100 |
---|---|---|
committer | Fabian Homborg <FHomborg@gmail.com> | 2016-01-14 16:58:29 +0100 |
commit | ed1919b266033ddea6781e78d637538398c5cfa2 (patch) | |
tree | 23bca89acbf68747ed3eb1652b11063482293847 /tests | |
parent | fdb2559425d0838c0dc9c950949d8fdb2ae61024 (diff) |
abbr: Ensure we don't split on "=" if the given separator is " "
This fails on e.g. an abbr that uses `env a=b`, like the included test demonstrates.
Unfortunately it decreases the speed again (2s vs 2.2s vs 4s original),
but correctness is more important.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/abbr.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/abbr.in b/tests/abbr.in index 69fdfb38..be828b08 100644 --- a/tests/abbr.in +++ b/tests/abbr.in @@ -31,3 +31,7 @@ abbr -e '~__abbr2' abbr -- '--__abbr3' 'xyz' abbr | grep __abbr3 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" |