summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSami Kerola2015-08-02 22:24:08 +0200
committerKarel Zak2015-08-03 12:35:18 +0200
commit24bdce6ea844fd11f27808aed165e3d7dbb62d5c (patch)
treeaa0e62a64741038ba0568cb0ce7d7051d818febe
parenttests: fix minix test (diff)
downloadkernel-qcow2-util-linux-24bdce6ea844fd11f27808aed165e3d7dbb62d5c.tar.gz
kernel-qcow2-util-linux-24bdce6ea844fd11f27808aed165e3d7dbb62d5c.tar.xz
kernel-qcow2-util-linux-24bdce6ea844fd11f27808aed165e3d7dbb62d5c.zip
bash-completion: update few options changed since v2.26
Attempt to find and update all changes to command line options that has not been reflected in bash-completion files in between versions v2.26 to v2.27-rc1. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
-rw-r--r--bash-completion/fdisk1
-rw-r--r--bash-completion/findmnt8
-rw-r--r--bash-completion/logger27
-rw-r--r--bash-completion/lslocks1
-rw-r--r--bash-completion/sfdisk66
5 files changed, 63 insertions, 40 deletions
diff --git a/bash-completion/fdisk b/bash-completion/fdisk
index 72a2b4236..0ba522ee4 100644
--- a/bash-completion/fdisk
+++ b/bash-completion/fdisk
@@ -36,6 +36,7 @@ _fdisk_module()
case $cur in
-*)
OPTS="--sector-size
+ --protect-boot
--compatibility
--color
--list
diff --git a/bash-completion/findmnt b/bash-completion/findmnt
index 3ad914735..d7e06c8d4 100644
--- a/bash-completion/findmnt
+++ b/bash-completion/findmnt
@@ -85,6 +85,12 @@ _findmnt_module()
COMPREPLY=( $(compgen -W "$DEV_MPOINT" -- $cur) )
return 0
;;
+ '-M'|'--mountpoint')
+ local IFS=$'\n'
+ compopt -o filenames
+ COMPREPLY=( $(compgen -o dirnames -- ${cur:-"/") )
+ return 0
+ ;;
'-h'|'--help'|'-V'|'--version')
return 0
;;
@@ -105,6 +111,7 @@ _findmnt_module()
--tab-file
--first-only
--invert
+ --json
--list
--task
--noheadings
@@ -118,6 +125,7 @@ _findmnt_module()
--submounts
--source
--target
+ --mountpoint
--help
--version"
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
diff --git a/bash-completion/logger b/bash-completion/logger
index dcbfa9b62..7f7f086ca 100644
--- a/bash-completion/logger
+++ b/bash-completion/logger
@@ -31,13 +31,38 @@ _logger_module()
COMPREPLY=( $(compgen -W "$(awk '$NF ~ /^\// {print $NF}' /proc/net/unix)" -- $cur) )
return 0
;;
+ '--msgid')
+ COMPREPLY=( $(compgen -W "msgid" -- $cur) )
+ return 0
+ ;;
'-h'|'--help'|'-V'|'--version')
return 0
;;
esac
case $cur in
-*)
- OPTS="--journald --udp --id --file --help --server --skip-empty --port --priority --rfc3164 --rfc5424 --stderr --tag --size --socket --version"
+ OPTS="
+ --file
+ --help
+ --id
+ --journald
+ --msgid
+ --no-act
+ --octet-count
+ --port
+ --prio-prefix
+ --priority
+ --rfc3164
+ --rfc5424
+ --server
+ --size
+ --skip-empty
+ --socket
+ --stderr
+ --tag
+ --udp
+ --version
+ "
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
return 0
;;
diff --git a/bash-completion/lslocks b/bash-completion/lslocks
index 6ad6c057a..0fd0acd00 100644
--- a/bash-completion/lslocks
+++ b/bash-completion/lslocks
@@ -34,6 +34,7 @@ _lslocks_module()
case $cur in
-*)
OPTS="--pid
+ --json
--output
--noheadings
--raw
diff --git a/bash-completion/sfdisk b/bash-completion/sfdisk
index 9128313ee..f8ae1f1b0 100644
--- a/bash-completion/sfdisk
+++ b/bash-completion/sfdisk
@@ -5,14 +5,14 @@ _sfdisk_module()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
case $prev in
- '-u'|'--unit')
- COMPREPLY=( $(compgen -W "S C B M" -- $cur) )
- return 0
- ;;
'-n'|'-C'|'--cylinders'|'-H'|'--heads'|'-S'|'--sectors')
COMPREPLY=( $(compgen -W "number" -- $cur) )
return 0
;;
+ '--color')
+ COMPREPLY=( $(compgen -W "auto never always" -- $cur) )
+ return 0
+ ;;
'-O'|'-I')
local IFS=$'\n'
compopt -o filenames
@@ -28,48 +28,36 @@ _sfdisk_module()
cur=${cur#=}
;;
-*)
- OPTS="--show-size
- --id
- --change-id
- --print-id
+ OPTS="
+ --activate
+ --dump
+ --json
+ --show-geometry
--list
--list-free
- --dump
- --increment
- --unit
- --one-only
+ --show-size
--list-types
- --DOS
- --DOS-extended
- --re-read
- -N
- -n
- -O
- -I
--verify
- --version
- --help
+ --part-label
+ --part-type
+ --part-uuid
+ --part-attrs
+ --append
+ --backup
+ --bytes
--force
+ --color
+ --partno
+ --no-act
--no-reread
+ --backup-file
+ --output
--quiet
- --Linux
- --show-geometry
- --show-pt-geometry
- --activate=
- --unhide=
- --show-extended
- --leave-last
- --IBM
- --in-order
- --not-in-order
- --inside-outer
- --not-inside-outer
- --nested
- --chained
- --onesector
- --cylinders
- --heads
- --sectors"
+ --label
+ --label-nested
+ --help
+ --version
+ "
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
return 0
;;