# HG changeset patch # User Danek Duvall # Date 1413405054 25200 # Node ID bf3706873eae6352d36fa9c447045c13da40c180 # Parent 7838ef31ac9cba44435d9871c6692bc8b817ae52 19816248 zsh 5.0.7 19816404 problem in UTILITY/ZSH diff -r 7838ef31ac9c -r bf3706873eae components/zsh/Makefile --- a/components/zsh/Makefile Tue Dec 02 01:00:06 2014 -0600 +++ b/components/zsh/Makefile Wed Oct 15 13:30:54 2014 -0700 @@ -27,16 +27,16 @@ include ../../make-rules/shared-targets.mk COMPONENT_NAME= zsh -COMPONENT_VERSION= 5.0.5 +COMPONENT_VERSION= 5.0.7 COMPONENT_PROJECT_URL= http://www.zsh.org/ COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2 COMPONENT_ARCHIVE_HASH= \ - sha256:6624d2fb6c8fa4e044d2b009f86ed1617fe8583c83acfceba7ec82826cfa8eaf + sha256:544e27de81740286b916d1d77c9f48ad7c26ad7943ed96d278abee67cf6704b3 COMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/project/zsh/zsh/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE) COMPONENT_BUGDB= utility/zsh -TPNO= 19296 +TPNO= 19477 include ../../make-rules/prep.mk include ../../make-rules/configure.mk diff -r 7838ef31ac9c -r bf3706873eae components/zsh/patches/completion.patch --- a/components/zsh/patches/completion.patch Tue Dec 02 01:00:06 2014 -0600 +++ b/components/zsh/patches/completion.patch Wed Oct 15 13:30:54 2014 -0700 @@ -846,234 +846,6 @@ ("uninstall") _arguments -A "-*" \ '-F[Force]' \ ---- zsh-5.0.5/Completion/Unix/Command/_pgrep Wed Nov 27 11:00:19 2013 -+++ zsh-5.0.5/Completion/Unix/Command/_pgrep Sat Mar 29 09:41:30 2014 -@@ -1,32 +1,71 @@ --#compdef pgrep pkill -+#compdef pgrep pkill - - local context state line ret=1 expl - typeset -A opt_args - typeset -a arguments - --arguments=('-P[parent process id]:parent process id:->ppid' -- '-g[match only in process group ids]:group:->pgid' -- '-G[match only real group id]:group:_groups' -- '-s[match only session id]:session id:->sid' -+arguments=('-P[parent process id]:parent process id:->ppid' -+ '-F[match only in process in pidfile]:files:_files' -+ '-g[match only in process group ids]:group:->pgid' -+ '-G[match only real group id]:group:_groups' -+ '-j[match only in processes inside jails]:jail id:->jid' -+ '-J[match only in project ids]:project id:->projid' -+ '-M[extract the name list from the specified core]:files:_files' -+ '-N[extract the name list from the specified system]:files:_files' -+ '-s[match only session id]:session id:->sid' - '-t[match only controlled by terminal]:terminal device:->tty' -- '-u[match only effective user id]:user:_users' -- '-U[match only real user id]:user:_users' -- '(-n)-o[oldest process]' -- '(-o)-n[newest process]' -- '-f[match against full command line]' -- '-v[negate matching]' -- '-x[match exactly]' -- '*:process name:->pname') -+ '-T[match only in processes specified routing table in rtable]' -+ '-u[match only effective user id]:user:_users' -+ '-U[match only real user id]:user:_users' -+ '(-n)-o[oldest process]' -+ '(-o)-n[newest process]' -+ '-a[include process ancestors in the match list]' -+ '-c[print a count of matching processes]' -+ '-f[match against full command line]' -+ '-i[ignore case distinctions]' -+ '-I[confirmation before attempting to single each process]' -+ '-L[given pidfile must be locked]' -+ '-q[do not write anything to standard output]' -+ '-S[search also in system processes]' -+ '-v[negate matching]' -+ '-x[match exactly]' -+ '-z[match only in zones]:zone:_zones') - --if [[ $service == 'pkill' ]] --then -+if [[ $service == 'pkill' ]]; then - arguments+=('-'${^signals}'[signal]') --elif [[ $service == 'pgrep' ]] --then -+elif [[ $service == 'pgrep' ]]; then - arguments+=('-d[output delimiter]:delimiter:compadd ${(s\:\:)IFS}' - '-l[list name in addition to id]') - fi - -+local optchars -+case "$OSTYPE" in -+ linux*) -+ optchars="cflvxdnoPgsuUGt" -+ ;; -+ freebsd*) -+ optchars="LSafilnoqvxFGMNPUdgjstu" -+ ;; -+ openbsd*) -+ optchars="flnoqvxdGgPsTtUu" -+ ;; -+ darwin*) -+ optchars="LafilnoqvxFGPUdgtu" -+ ;; -+ solaris*) -+ optchars="flvxdnoPgsuUGJtTcz" -+ arguments=( ${arguments##-T*} ) -+ arguments=( ${arguments##-c*} ) -+ arguments+=( '-T[match only processes in task ids]:taskid:->task' ) -+ arguments+=( '-c[match only processes in contract ids]:taskid:->contract' ) -+ ;; -+ *) -+ optchars="flvxdnoPgsuUGt" -+ ;; -+esac -+arguments=( ${(M)arguments:#(|\*)(|\(*\))-[$optchars]*} -+ '*:process name:->pname') -+ - _arguments -s -w $arguments && ret=0 - - case $state in -@@ -39,23 +78,45 @@ - ttys=( /dev/tty*(N) /dev/pts/*(N) ) - _wanted tty expl 'terminal device' compadd -S ',' -q -F used ${ttys#/dev/} - ;; -- -+ - (sid) -+ if [[ $OSTYPE == openbsd* ]]; then -+ break -+ fi -+ - compset -P '*,' - - local -a used sid - used=(${(s:,:)IPREFIX}) -- sid=(${(uon)$(ps -A o sid=)}) -+ if [[ $OSTYPE == freebsd* ]]; then -+ sid=(${(uon)$(ps -ax -o sid=)}) -+ else -+ sid=(${(uon)$(ps -A -o sid=)}) -+ fi - - _wanted sid expl 'session id' compadd -S ',' -q -F used $sid - ;; -- -+ -+ (jid) -+ compset -P '*,' -+ -+ local -a used jid -+ used=(${(s:,:)IPREFIX}) -+ jid=(${(uon)$(ps -ax -o jid=)}) -+ -+ _wanted jid expl 'jail id' compadd -S ',' -q -F used $jid -+ ;; -+ - (ppid) - compset -P '*,' - - local -a used ppid - used=(${(s:,:)IPREFIX}) -- ppid=(${(uon)$(ps -A o ppid=)}) -+ if [[ $OSTYPE == (freebsd|openbsd|darwin)* ]]; then -+ ppid=(${(uon)$(ps -ax -o ppid=)}) -+ else -+ ppid=(${(uon)$(ps -A -o ppid=)}) -+ fi - - _wanted ppid expl 'parent process id' compadd -S ',' -q -F used $ppid - ;; -@@ -65,25 +126,77 @@ - - local -a used pgid - used=(${(s:,:)IPREFIX}) -- pgid=(${(uon)$(ps -A o pgid=)}) -+ if [[ $OSTYPE == (freebsd|openbsd|darwin)* ]]; then -+ pgid=(${(uon)$(ps -ax -o pgid=)}) -+ else -+ pgid=(${(uon)$(ps -A -o pgid=)}) -+ fi - - _wanted pgid expl 'process group id' compadd -S ',' -q -F used $pgid - ;; -- -+ -+ (projid) -+ compset -P '*,' -+ -+ local -a used projid -+ used=(${(s:,:)IPREFIX}) -+ projid=(${(uon)$(ps -A -o project=)}) -+ -+ _wanted projid expl 'project id' compadd -S ',' -q -F used $projid -+ ;; -+ -+ (contract) -+ compset -P '*,' -+ -+ local -a used ctid -+ used=(${(s:,:)IPREFIX}) -+ ctid=(${(uon)$(ps -A -o ctid=)}) -+ -+ _wanted ctid expl 'contract id' compadd -S ',' -q -F used $ctid -+ ;; -+ -+ (task) -+ compset -P '*,' -+ -+ local -a used taskid -+ used=(${(s:,:)IPREFIX}) -+ taskid=(${(uon)$(ps -A -o project=)}) -+ -+ _wanted taskid expl 'task id' compadd -S ',' -q -F used $taskid -+ ;; -+ - (pname) - local ispat="pattern matching " -- if (( ${+opt_args[-x]} )) -- then -+ if (( ${+opt_args[-x]} )); then - ispat="" - fi -- if (( ${+opt_args[-f]} )) -- then -- _wanted pname expl $ispat'process command line' compadd ${(u)${(f)"$(ps -A o cmd=)"}} -+ -+ local command -+ if (( ${+opt_args[-f]} )); then -+ if [[ "$OSTYPE" == freebsd* ]] && (( ${+opt_args[-S]} )); then -+ command="$(ps -axH -o command=)" -+ elif [[ "$OSTYPE" == (freebsd|openbsd|darwin)* ]]; then -+ command="$(ps -ax -o command=)" -+ elif [[ "$OSTYPE" == solaris* ]]; then -+ command="$(ps -A -o args=)" -+ else -+ command="$(ps -A o cmd=)" -+ fi -+ _wanted pname expl $ispat'process command line' compadd ${(u)${(f)${command}}} - else -- _wanted pname expl $ispat'process name' compadd ${(u)${(f)"$(ps -A co cmd=)"}} -+ if [[ "$OSTYPE" == freebsd* ]] && (( ${+opt_args[-S]} )); then -+ command="$(ps -axcH -o command=)" -+ elif [[ "$OSTYPE" == (freebsd|openbsd|darwin)* ]]; then -+ command="$(ps -axc -o command=)" -+ elif [[ "$OSTYPE" == solaris* ]]; then -+ command="$(ps -A -o comm=)" -+ else -+ command="$(ps -A co cmd=)" -+ fi -+ _wanted pname expl $ispat'process name' compadd ${(u)${(f)${command}}} - fi - ;; -- -+ - esac && ret=0 - - return ret --- zsh-5.0.5/Completion/Unix/Command/_zfs Thu Jan 2 14:23:56 2014 +++ zsh-5.0.5/Completion/Unix/Command/_zfs Sat Mar 29 11:35:15 2014 @@ -1,5 +1,5 @@ diff -r 7838ef31ac9c -r bf3706873eae components/zsh/zsh.p5m --- a/components/zsh/zsh.p5m Tue Dec 02 01:00:06 2014 -0600 +++ b/components/zsh/zsh.p5m Wed Oct 15 13:30:54 2014 -0700 @@ -237,6 +237,8 @@ file \ path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Base/_expand_word file \ + path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Base/_extensions +file \ path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Base/_generic file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Base/_guard file \ @@ -281,6 +283,8 @@ file \ path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Base/_sep_parts file \ + path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Base/_sequence +file \ path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Base/_set_command file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Base/_setup file \ @@ -332,6 +336,8 @@ file \ path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Darwin/_softwareupdate file \ + path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Darwin/_system_profiler +file \ path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Debian/_a2utils file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Debian/_apt file \ @@ -468,9 +474,11 @@ path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Linux/_rpmbuild file \ path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Linux/_schedtool +file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Linux/_ss file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Linux/_sshfs file \ path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Linux/_strace +file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Linux/_sysstat file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Linux/_tpb file \ path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Linux/_tpconfig @@ -562,6 +570,7 @@ file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Unix/_arping file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Unix/_at file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Unix/_attr +file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Unix/_augeas file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Unix/_awk file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Unix/_baz file \ @@ -571,6 +580,7 @@ path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Unix/_bittorrent file \ path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Unix/_bogofilter +file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Unix/_bpython file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Unix/_bzip2 file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Unix/_bzr file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Unix/_cal @@ -588,6 +598,7 @@ path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Unix/_chkconfig file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Unix/_chmod file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Unix/_chown +file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Unix/_chsh file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Unix/_clay file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Unix/_comm file \ @@ -628,6 +639,7 @@ path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Unix/_dmidecode file \ path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Unix/_domains +file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Unix/_dsh file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Unix/_du file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Unix/_dvi file \ @@ -757,6 +769,7 @@ file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Unix/_module file \ path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Unix/_monotone +file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Unix/_moosic file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Unix/_mosh file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Unix/_mount file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Unix/_mpc @@ -784,6 +797,7 @@ file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Unix/_npm file \ path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Unix/_nslookup +file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Unix/_od file \ path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Unix/_other_accounts file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Unix/_pack @@ -1135,8 +1149,6 @@ file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Zsh/_ulimit file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Zsh/_unhash file \ - path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Zsh/_unsetopt -file \ path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Zsh/_user_math_func file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Zsh/_value file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/Zsh/_vared @@ -1166,7 +1178,7 @@ file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/compinit file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/compinstall file \ - path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/openSUSE/_SuSEconfig + path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/openSUSE/_SUSEconfig file \ path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Completion/openSUSE/_hwinfo file \ @@ -1391,6 +1403,7 @@ file \ path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Zle/down-line-or-beginning-search file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Zle/edit-command-line +file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Zle/expand-absolute-path file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Zle/forward-word-match file \ path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Zle/history-beginning-search-menu @@ -1421,6 +1434,7 @@ path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Zle/quote-and-complete-word file \ path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Zle/read-from-minibuffer +file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Zle/replace-argument file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Zle/replace-string file \ path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Zle/replace-string-again @@ -1439,6 +1453,7 @@ file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Zle/url-quote-magic file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Zle/which-command file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Zle/zed-set-file-name +file path=usr/share/zsh/$(COMPONENT_VERSION)/functions/Zle/zcalc-auto-insert file path=usr/share/zsh/$(COMPONENT_VERSION)/help/alias link path=usr/share/zsh/$(COMPONENT_VERSION)/help/autoload target=functions file path=usr/share/zsh/$(COMPONENT_VERSION)/help/bg