MNT_OPTS[$I]='1'
done
done < <(findmnt -rno OPTIONS)
- COMPREPLY=( $(compgen -W "$(echo ${!MNT_OPTS[@]})" -- $cur) )
+ COMPREPLY=( $(compgen -W "${!MNT_OPTS[@]}" -- $cur) )
return 0
;;
'-o'|'--output')
return 0
;;
'-E'|'--conflict-exit-code')
- COMPREPLY=( $(compgen -W "$(echo {0..255})" -- $cur) )
+ COMPREPLY=( $(compgen -W "{0..255}" -- $cur) )
return 0
;;
'-c'|'--command')
prev="${COMP_WORDS[COMP_CWORD-1]}"
case $prev in
'-c'|'--class')
- COMPREPLY=( $(compgen -W "$(echo {0..3}) none realtime best-effort idle" -- $cur) )
+ COMPREPLY=( $(compgen -W "{0..3} none realtime best-effort idle" -- $cur) )
return 0
;;
'-n'|'--classdata')
- COMPREPLY=( $(compgen -W "$(echo {0..7})" -- $cur) )
+ COMPREPLY=( $(compgen -W "{0..7}" -- $cur) )
return 0
;;
'-p'|'--pid')
return 0
;;
'-p'|'--priority')
- COMPREPLY=( $(compgen -W "$(echo {auth,authpriv,cron,daemon,ftp,lpr,mail,news,security}.{alert,crit,debug,emerg,err,error})" -- $cur) )
+ COMPREPLY=( $(compgen -W "{auth,authpriv,cron,daemon,ftp,lpr,mail,news,security}.{alert,crit,debug,emerg,err,error}" -- $cur) )
return 0
;;
'-t'|'--tag')
return 0
;;
'-n'|'--priority')
- COMPREPLY=( $(compgen -W "$(echo {-20..20})" -- $cur) )
+ COMPREPLY=( $(compgen -W "{-20..20}" -- $cur) )
return 0
;;
'-p'|'--pid')
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')
return 0
;;
'-msglevel')
- COMPREPLY=( $(compgen -W "$(echo {1..8})" -- $cur) )
+ COMPREPLY=( $(compgen -W "{1..8}" -- $cur) )
return 0
;;
'-powersave')
return 0
;;
'-powerdown')
- COMPREPLY=( $(compgen -W "$(echo {0..60})" -- $cur) )
+ COMPREPLY=( $(compgen -W "{0..60}" -- $cur) )
return 0
;;
'-blength')
'-p'|'--priority')
# Priority range is -1 to 32767. Perhaps these
# few are enough.
- COMPREPLY=( $(compgen -W "$(echo {-1..9} 32767)" -- $cur) )
+ COMPREPLY=( $(compgen -W "{-1..9} 32767" -- $cur) )
return 0
;;
'--show')