26763: fix problem on failed cd -s to relative path
[zsh.git] / Completion / Solaris / Command / _dumpadm
blob37491946ce09522919e00a68a8bb9231d89bfdae
1 #compdef dumpadm
3 _dumpadm() {
4         local -a content
6         content=(
7                 "kernel"\:"Kernel memory pages only"
8                 "all"\:"All memory pages"
9                 "curproc"\:"Kernel memory pages plus curproc pages"
10         )
12         _arguments -s \
13                 '-n[Dont run savecore on reboot]' \
14                 '-u[Update dump configuration from dumpadm.conf]' \
15                 '-y[Run savecore on reboot]' \
16                 '-c[Set dump content]:dump content:(($content))' \
17                 '-d[Set dump device]:block devices:_files -g "*(-%b)"' \
18                 '-m[Set minfree size ]:' \
19                 '-s[Set the savecore directory]:directory:_files -/' \
20                 '-r[Alternate root directory]:directory:_files -/'
23 _dumpadm "$@"