commit 0fdbc41b8ded814a6460a7291da246d5197c329c parent 51cd8268f9e765915b1dcc35c4cb7dab4e3b9d3a Author: Alex Balgavy <alex@balgavy.eu> Date: Tue, 8 Jun 2021 14:20:28 +0200 vim: fix sh arg parsing snippet Diffstat:
M | vim/ultisnips/sh.snippets | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vim/ultisnips/sh.snippets b/vim/ultisnips/sh.snippets @@ -31,7 +31,7 @@ while [ \$((\$#)) -ne 0 ]; do exit 1 ;; *) # preserve positional arguments - PARAMS="\$PARAMS \$1" + PARAMS="\$PARAMS $(printf '%q' "\$1")" shift ;; esac