]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - bash-completion/lslogins
bash-completion: fix few bash set -u issues
[thirdparty/util-linux.git] / bash-completion / lslogins
index 967b644ca0c67b85f43b56b2929a28178d54383b..795b5d848358a85a5a271bcf3e0bf43e9b0d0b4a 100755 (executable)
@@ -35,7 +35,7 @@ _lslogins_module()
                        prefix="${cur%$realcur}"
                        for WORD in $LSLOGINS_COLS_ALL; do
                                if ! [[ $prefix == *"$WORD"* ]]; then
-                                       LSLOGINS_COLS="$WORD $LSLOGINS_COLS"
+                                       LSLOGINS_COLS="$WORD ${LSLOGINS_COLS:-""}"
                                fi
                        done
                        compopt -o nospace