]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - bash-completion/su
Merge branch 'highsierra' of https://github.com/pali/util-linux
[thirdparty/util-linux.git] / bash-completion / su
index dad1b5f045d0ec0161f81998f90c512bb56e0674..913e445230a4a6b620c8fac1ccdafd085e01524f 100644 (file)
@@ -25,6 +25,7 @@ _su_module()
                -*)
                        OPTS="  --user
                                --preserve-environment
+                               --whitelist-environment
                                --group
                                --supp-group
                                --login
@@ -40,7 +41,7 @@ _su_module()
        esac
        local IFS=$'\n'
        compopt -o filenames
-       COMPREPLY=( $(compgen -f -- $cur) )
+       COMPREPLY=( $(compgen -u -- $cur) )
        return 0
 }
 complete -F _su_module su