From 3b2fd831f47096c07475f3bbf8712445d7fb0ba0 Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Tue, 15 Mar 2016 13:51:19 +0200 Subject: [PATCH] Replace non-POSIX `-o` test flag with a double pipe --- rc/core/commenting.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/core/commenting.kak b/rc/core/commenting.kak index 0335f261..f6d0b068 100644 --- a/rc/core/commenting.kak +++ b/rc/core/commenting.kak @@ -14,7 +14,7 @@ def comment-selection -docstring "Comment/uncomment the current selection" %{ readonly opening=$(exec_proof "${kak_opt_comment_selection_chars%%:*}") readonly closing=$(exec_proof "${kak_opt_comment_selection_chars##*:}") - if [ -z "${opening}" -o -z "${closing}" ]; then + if [ -z "${opening}" ] || [ -z "${closing}" ]; then printf %s "The \`comment_selection_chars\` variable is empty, couldn't comment the selection" >&2 exit fi