summaryrefslogtreecommitdiff
path: root/completions/_udevadm
diff options
context:
space:
mode:
authorGabriel F. T. Gomes <gabriel@inconstante.net.br>2019-08-07 09:17:13 -0300
committerGabriel F. T. Gomes <gabriel@inconstante.net.br>2019-08-07 09:17:13 -0300
commit5732da2af736c40cf693354485446ab4867ecb4d (patch)
tree76d76cdfa16ca62d20fb109da13895ec64fff110 /completions/_udevadm
parent9cd22d1df8f0f5b554858471c86faa9f37b8fed4 (diff)
downloadbash-completion-5732da2af736c40cf693354485446ab4867ecb4d.tar.gz
New upstream version 2.9upstream/2.9
Diffstat (limited to 'completions/_udevadm')
-rw-r--r--completions/_udevadm22
1 files changed, 10 insertions, 12 deletions
diff --git a/completions/_udevadm b/completions/_udevadm
index 80424dca..ce43f1ad 100644
--- a/completions/_udevadm
+++ b/completions/_udevadm
@@ -24,12 +24,12 @@ _udevadm()
return
;;
--log-priority)
- COMPREPLY=( $( compgen -W 'err info debug' -- "$cur" ) )
+ COMPREPLY=( $(compgen -W 'err info debug' -- "$cur") )
return
;;
--query)
- COMPREPLY=( $( compgen -W 'name symlink path property all' \
- -- "$cur" ) )
+ COMPREPLY=( $(compgen -W 'name symlink path property all' \
+ -- "$cur") )
return
;;
--name)
@@ -42,11 +42,11 @@ _udevadm()
return
;;
--action)
- COMPREPLY=( $( compgen -W 'add change remove' -- "$cur" ) )
+ COMPREPLY=( $(compgen -W 'add change remove' -- "$cur") )
return
;;
--type)
- COMPREPLY=( $( compgen -W 'devices subsystems failed' -- "$cur" ) )
+ COMPREPLY=( $(compgen -W 'devices subsystems failed' -- "$cur") )
return
;;
esac
@@ -56,21 +56,19 @@ _udevadm()
if [[ -z $udevcmd ]]; then
case $cur in
-*)
- COMPREPLY=( $( compgen -W '--help --version --debug' -- \
- "$cur" ) )
+ COMPREPLY=( $(compgen -W '--help --version --debug' -- "$cur") )
;;
*)
- COMPREPLY=( $( compgen -W "$( "$1" --help 2>/dev/null |
- awk '/^[ \t]/ { print $1 }' )" -- "$cur" ) )
+ COMPREPLY=( $(compgen -W "$("$1" --help 2>/dev/null |
+ awk '/^[ \t]/ { print $1 }')" -- "$cur") )
;;
esac
return
fi
if [[ $cur == -* ]]; then
- COMPREPLY=( $( compgen -W \
- '$( "$1" $udevcmd --help 2>/dev/null | _parse_help - )' \
- -- "$cur" ) )
+ COMPREPLY=( $(compgen -W \
+ '$("$1" $udevcmd --help 2>/dev/null | _parse_help -)' -- "$cur") )
[[ $COMPREPLY == *= ]] && compopt -o nospace
fi
} &&