From: Sami Kerola Date: Wed, 11 Dec 2019 19:19:21 +0000 (+0000) Subject: bash-completion: update script, scriptlive, and scriptreplay files X-Git-Tag: v2.35-rc2~29^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6b62a608b26e5c2322b32b5f0b3406cdb68388d4;p=thirdparty%2Futil-linux.git bash-completion: update script, scriptlive, and scriptreplay files Signed-off-by: Sami Kerola --- diff --git a/bash-completion/script b/bash-completion/script index d6add99351..9533313f7d 100644 --- a/bash-completion/script +++ b/bash-completion/script @@ -10,10 +10,18 @@ _script_module() COMPREPLY=( $(compgen -c -- $cur) ) return 0 ;; + '-E'|'--echo') + COMPREPLY=( $(compgen -W "auto always never" -- $cur) ) + return 0 + ;; '-o'|'--output-limit') COMPREPLY=( $(compgen -W "size" -- $cur) ) return 0 ;; + '-m'|'--logging-format') + COMPREPLY=( $(compgen -W "classic advanced" -- $cur) ) + return 0 + ;; '-h'|'--help'|'-V'|'--version') return 0 ;; diff --git a/bash-completion/scriptlive b/bash-completion/scriptlive index 1dd0a63650..56a296f5b5 100644 --- a/bash-completion/scriptlive +++ b/bash-completion/scriptlive @@ -5,6 +5,11 @@ _scriptlive_module() cur="${COMP_WORDS[COMP_CWORD]}" prev="${COMP_WORDS[COMP_CWORD-1]}" case $prev in + '-c'|'--command') + compopt -o bashdefault + COMPREPLY=( $(compgen -c -- $cur) ) + return 0 + ;; '-d'|'--divisor'|'-m'|'--maxdelay') COMPREPLY=( $(compgen -W "digit" -- $cur) ) return 0 diff --git a/bash-completion/scriptreplay b/bash-completion/scriptreplay index 6c1ed4ca00..5e3f20eea7 100644 --- a/bash-completion/scriptreplay +++ b/bash-completion/scriptreplay @@ -5,10 +5,18 @@ _scriptreplay_module() cur="${COMP_WORDS[COMP_CWORD]}" prev="${COMP_WORDS[COMP_CWORD-1]}" case $prev in + '-c'|'--cr-mode') + COMPREPLY=( $(compgen -W "auto never always" -- $cur) ) + return 0 + ;; '-d'|'--divisor'|'-m'|'--maxdelay') COMPREPLY=( $(compgen -W "digit" -- $cur) ) return 0 ;; + '-x'|'--stream') + COMPREPLY=( $(compgen -W "out in signal info" -- $cur) ) + return 0 + ;; '-h'|'--help'|'-V'|'--version') return 0 ;;