diff options
| author | Ville Skyttä <ville.skytta@iki.fi> | 2013-04-07 11:12:05 +0300 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2013-04-08 17:06:53 +0200 |
| commit | d6b975ef4492543fb1d31709906193b3ae01d574 (patch) | |
| tree | 26804bb5a3adca0a6ab4618d5f2542df0573c67e /bash-completion/setterm | |
| parent | d4f9b8d74c5110c6ee92483facd7a0d94a1a9e57 (diff) | |
| download | util-linux-d6b975ef4492543fb1d31709906193b3ae01d574.tar.gz | |
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 ae07d1ee..7fa0a4e4 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') |
