]> git.rmz.io Git - dotfiles.git/blobdiff - vim/ultisnips/sh.snippets
vim: don't shadow '[ '] mappings
[dotfiles.git] / vim / ultisnips / sh.snippets
index ff10449e6ac55075d7d991191def968cdd6d3ba3..1ea5c21221789818d8dbcbabb818fc19b7608a53 100644 (file)
@@ -26,7 +26,7 @@ function usage ()
 
 # Parse arguments
 declare -a args
-while [[ $# > 0 ]]; do
+while [[ $# -gt 0 ]]; do
        opt="\$1"
 
        case $opt in
@@ -36,7 +36,7 @@ while [[ $# > 0 ]]; do
                        echo -e "\n  Option does not exist : $opt\n"
                        usage; exit 1 ;;
 
-               *) args+=($opt); shift ;;
+               *) args+=("$opt"); shift ;;
        esac
 done
 endsnippet