]> git.ipfire.org Git - thirdparty/util-linux.git/blob - bash-completion/ipcs
rev: be careful with close()
[thirdparty/util-linux.git] / bash-completion / ipcs
1 _ipcs_module()
2 {
3 local cur prev OPTS
4 COMPREPLY=()
5 cur="${COMP_WORDS[COMP_CWORD]}"
6 prev="${COMP_WORDS[COMP_CWORD-1]}"
7 case $prev in
8 '-i'|'--id')
9 COMPREPLY=( $(compgen -W "id" -- $cur) )
10 return 0
11 ;;
12 '-h'|'--help'|'-V'|'--version')
13 return 0
14 ;;
15 esac
16 OPTS="--id
17 --help
18 --version
19 --shmems
20 --queues
21 --semaphores
22 --all
23 --time
24 --pid
25 --creator
26 --limits
27 --summary
28 --human
29 --bytes"
30 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
31 return 0
32 }
33 complete -F _ipcs_module ipcs