mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-29 01:24:52 +03:00
Replace non-POSIX '<<<' here strings with a regular pipeline
This commit is contained in:
parent
84a21f8cfb
commit
262de38c3d
@ -63,7 +63,7 @@ def -hidden _modeline-parse %{
|
||||
BOM
|
||||
)
|
||||
|
||||
grep -qw "${key}" <<< "${OPTS_ALLOWED[@]}" || {
|
||||
printf %s "${OPTS_ALLOWED[@]}" | grep -qw "${key}" || {
|
||||
printf %s "Unsupported kakoune variable: ${key}" >&2;
|
||||
return;
|
||||
}
|
||||
@ -77,9 +77,10 @@ def -hidden _modeline-parse %{
|
||||
# It will also convert the ':' seperators beween the option=value pairs
|
||||
# More info: http://vimdoc.sourceforge.net/htmldoc/options.html#modeline
|
||||
options=(
|
||||
$(sed -r -e 's/^(.+\s\w+:\s?(set?)?\s)//' \
|
||||
-e 's/:?\s[^a-zA-Z0-9_=-]+$//' \
|
||||
-e 's/:/ /g' <<< "${kak_selection}")
|
||||
$(printf %s "${kak_selection}" | sed -r \
|
||||
-e 's/^(.+\s\w+:\s?(set?)?\s)//' \
|
||||
-e 's/:?\s[^a-zA-Z0-9_=-]+$//' \
|
||||
-e 's/:/ /g')
|
||||
)
|
||||
|
||||
case "${kak_selection}" in
|
||||
|
Loading…
Reference in New Issue
Block a user