1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-04 06:36:18 +02:00

48416: update _gcore for macOS and GNU

This commit is contained in:
Jun-ichi Takimoto 2021-04-08 22:24:52 +09:00
parent e4a8740c78
commit 62e86515e7
2 changed files with 18 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2021-04-08 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
* 48416: Completion/Unix/Command/_gcore: support macOS, with
update for GNU gcore
2021-04-08 Daniel Shahaf <d.s@daniel.shahaf.name>
* 48410: Doc/Zsh/metafaq.yo, Etc/FAQ.yo: FAQ, METAFAQ: Mention

View File

@ -49,10 +49,20 @@ case $OSTYPE in
'::executable:' \
':pid:_pids'
;;
darwin*)
_arguments -s -A '-*' \
'-s[suspend the process while the core file is captured]' \
'-v[report progress on the dump as it proceeds]' \
'-b+[specify maximum size of core file]:size (MiB): ' \
'(-c)-o+[write core file to specified file]:file:_files' \
'(-o)-c+[specify format of core file name]:format:{_message "%%N\:program name, %%U\:uid, %%P\:pid, %%T\:time stamp"}' \
'1:pid:_pids'
;;
*)
# GNU GDB gcore
_arguments \
'-o[set core file base name]:file base name:_files' \
':pid:_pids'
_arguments -s -A '-*' \
'-a[dump all memory mappings]' \
'-o+[set core file base name]:file base name:_files' \
'*:pid:_pids'
;;
esac