diff options
author | Ville Skyttä | 2013-04-07 10:12:05 +0200 |
---|---|---|
committer | Karel Zak | 2013-04-08 17:06:53 +0200 |
commit | d6b975ef4492543fb1d31709906193b3ae01d574 (patch) | |
tree | 26804bb5a3adca0a6ab4618d5f2542df0573c67e /bash-completion/setterm | |
parent | bash-completion: Don't offer any more completions after help or version. (diff) | |
download | kernel-qcow2-util-linux-d6b975ef4492543fb1d31709906193b3ae01d574.tar.gz kernel-qcow2-util-linux-d6b975ef4492543fb1d31709906193b3ae01d574.tar.xz kernel-qcow2-util-linux-d6b975ef4492543fb1d31709906193b3ae01d574.zip |
bash-completion: Avoid some unnecessary subshells.
Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
Diffstat (limited to 'bash-completion/setterm')
-rw-r--r-- | bash-completion/setterm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bash-completion/setterm b/bash-completion/setterm index ae07d1ee6..7fa0a4e45 100644 --- a/bash-completion/setterm +++ b/bash-completion/setterm @@ -31,17 +31,17 @@ _setterm_module() return 0 ;; '-regtabs') - COMPREPLY=( $(compgen -W "$(echo {1..160})" -- $cur) ) + COMPREPLY=( $(compgen -W "{1..160}" -- $cur) ) return 0 ;; '-blank') - COMPREPLY=( $(compgen -W "$(echo {0..60}) force poke" -- $cur) ) + COMPREPLY=( $(compgen -W "{0..60} force poke" -- $cur) ) return 0 ;; '-dump'|'-append') local NUM_CONS NUM_CONS=(/sys/class/tty/*) - COMPREPLY=( $(compgen -W "$(echo {1..${#NUM_CONS[*]}})" -- $cur) ) + COMPREPLY=( $(compgen -W "{1..${#NUM_CONS[*]}}" -- $cur) ) return 0 ;; '-file') @@ -50,7 +50,7 @@ _setterm_module() return 0 ;; '-msglevel') - COMPREPLY=( $(compgen -W "$(echo {1..8})" -- $cur) ) + COMPREPLY=( $(compgen -W "{1..8}" -- $cur) ) return 0 ;; '-powersave') @@ -58,7 +58,7 @@ _setterm_module() return 0 ;; '-powerdown') - COMPREPLY=( $(compgen -W "$(echo {0..60})" -- $cur) ) + COMPREPLY=( $(compgen -W "{0..60}" -- $cur) ) return 0 ;; '-blength') |