mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
Highlight escape characters in unquoted test expression operands. E.g., [[ foo == \[bar\] ]] fixes #17221 Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
9 lines
150 B
Bash
9 lines
150 B
Bash
#!/bin/bash
|
|
# Issue #17221 (sh syntax: escaped square brackets don't work in [[ ]])
|
|
|
|
[[ foo == [bar] ]]
|
|
[[ foo == \[bar\] ]]
|
|
|
|
echo [foo]
|
|
echo \[foo\]
|