From 37a6cc7a143e4b7a9f48927f1709667a37d349d1 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sun, 17 Sep 2017 19:49:02 +0100 Subject: bash-completion: update uuidgen, wipefs, tunelp, setpriv, and hwclock uuidgen: Add hash-based UUIDs to bash-completion. These were added in commit c6f1ec68a8b38863efff2a18e30b7272db4fb273. wipefs: Command started to use libsmartcols, and it got some new options. Commit d9921b2a128f17aa9a9a110444d5faa43e1b371c. rename: New option was added in commit fabb90676af89bcb5f429793746f141c0. tunelp: The --trust-irq was removed it being years broken. Commit d52eb4bd9062081c8420b22c029c694f29d036c7. setpriv: Add --ambient-caps option from commit 0c92194eeee9c1fd58580ef852. In same go fix 'bash set -u' issue, that is the same as mentioned commit abbcec4fc9c8d7fb835b4eafd1bc9d82acbf0056. hwclock: For some reason --get has always been missing from this file. Signed-off-by: Sami Kerola --- bash-completion/setpriv | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bash-completion/setpriv') diff --git a/bash-completion/setpriv b/bash-completion/setpriv index bdd3b7dab..8ab9e0722 100644 --- a/bash-completion/setpriv +++ b/bash-completion/setpriv @@ -5,14 +5,14 @@ _setpriv_module() cur="${COMP_WORDS[COMP_CWORD]}" prev="${COMP_WORDS[COMP_CWORD-1]}" case $prev in - '--inh-caps'|'--bounding-set') + '--ambient-caps'|'--inh-caps'|'--bounding-set') local prefix realcur INHERIT_ALL INHERIT realcur="${cur##*,}" prefix="${cur%$realcur}" INHERIT_ALL=$($1 --list-caps| awk '{print $1, "-" $1}') for WORD in $INHERIT_ALL; do if ! [[ $prefix == *"$WORD"* ]]; then - INHERIT="$WORD $INHERIT" + INHERIT="$WORD ${INHERIT:-""}" fi done compopt -o nospace @@ -70,6 +70,7 @@ _setpriv_module() -*) OPTS="--dump --no-new-privs + --ambient-caps --inh-caps --bounding-set --ruid -- cgit v1.2.3-55-g7522