pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/shells/zsh zsh: Update to 5.9



details:   https://anonhg.NetBSD.org/pkgsrc/rev/62e26cb3d9f8
branches:  trunk
changeset: 379419:62e26cb3d9f8
user:      ryoon <ryoon%pkgsrc.org@localhost>
date:      Mon May 16 14:58:30 2022 +0000

description:
zsh: Update to 5.9

Changelog:
5.9:
Changes since 5.8.1
-------------------

zsh 5.9 is dedicated to the memory of Sven Guckes, who was, amongst other
things, a long-time zsh advocate.  For more information, see:

  https://linuxnews.de/2022/02/sven-guckes-verstorben/
  https://groups.google.com/g/vim_announce/c/MJBKVd-xrEE/m/joVNaDgAAgAJ

When unsetting a hash element, the string enclosed in square brackets is
interpreted literally after any normal command-line-argument expansions.
Thus
  unset "hash[$key]"
first expands $key as usual for a double-quoted string, and then interprets
that result as the exact hash element to unset.  This differs from previous
versions of the shell, which would also remove a leading backslash for an
unusual subset of characters in the expansion of $key.  Note this also
means, for example, that now
  unset 'hash[ab]cd]'
unsets the element with key "ab]cd" rather than silently doing nothing.

The function command learnt a -T option to declare a function and enable
tracing for it simultaneously.

The option SHORT_REPEAT was added to enable the short syntax of
SHORT_LOOPS for the repeat command only. It is disabled by default.

The _arguments function now supports NUL-delimiting optargs in the
opt_args array via the -0 option. Developers of completion functions
should find this easier to handle reliably than the default
colon-delimiting behaviour.

The zsh/system module's `zsystem flock` command learnt an -i option to
set the wait interval used with -t. Additionally, -t now supports
fractional seconds.

The option CLOBBER_EMPTY was added to enable the overwrite behaviour
of CLOBBER for empty files only. It is disabled by default.

A (-) expansion flag was added. It works like (n) but correctly sorts
negative numbers.

The (*) expansion flag enables EXTENDED_GLOB for pattern matching.
For example, ${(*)sample/(#b)*(pat)*/${match[1]}} uses backreferences
even if EXTENDED_GLOB is not otherwise set.  However, this does not
descend into nested exapansions, and doubling as (**) does not disable
EXTENDED_GLOB.

The compinit function learnt a -w option to explain why compdump runs.
When run without the -i or -u options and compaudit discovers security
issues, answering "y" to the "Ignore insecure ..." prompt removes the
insecure elements (like the -i option) where previously it ignored the
result (thus formerly like the -u option).  Further, removing those
elements includes dropping directories from the $fpath array.

The zsh/datetime module's strftime builtin learnt an -n option to omit
the trailing newline when printing a formatted time.

The XTRACE option is now disabled while running user-defined completion
widgets.  This corresponds to long-standing behavior of other user ZLE
widgets.  Use the _complete_debug widget to capture XTRACE output, or
use "functions -T" to enable tracing of specific completion functions.

The fc builtin learnt an -s option which is a POSIX equivalent to the
`fc -e-` method of re-executing a command without invoking an editor.

The option CASE_PATHS was added to control how NO_CASE_GLOB behaves.
NO_CASE_GLOB + NO_CASE_PATHS is equivalent to the current NO_CASE_GLOB
behaviour. NO_CASE_GLOB + CASE_PATHS treats only path components that
contain globbing characters as case-insensitive; this behaviour may
yield more predictable results on case-sensitive file systems.
NO_CASE_PATHS is the default.

With the new TYPESET_TO_UNSET option set, "typeset foo" leaves foo unset,
in contrast to the default behavior which assigns foo="".  Any parameter
attributes such as numeric type, sorting, and padding are retained until
the parameter is explicitly unset or a conflicting value is assigned.
This is similar to default behavior of bash and ksh.  This option is
disabled by default.

The compadd builtin's -D option can now be specified more than once.

The zsh/zutil module's zformat builtin learnt an -F option which behaves
like -f except that ternary expressions check for existence instead of
doing math evaluation.

The conventional syntax used to indicate units, ranges, and default values
in completion descriptions (e.g. `timeout (seconds) (0-60) [20]`) is now
recognised by the completion system itself. These components are parsed
out of the description and can be individually styled. A _numbers helper
function has been added to help function authors offer rich completion
for these values.

The log builtin, WATCH parameter, et al., have been broken out into a
separate module, zsh/watch. The module is enabled by default.

The zsh/watch module's WATCHFMT parameter now supports colours via the
%F and %K escapes.

The STTY parameter can now be set to an empty string before running a
command to automatically restore terminal settings after the command
finishes.

The "jobs" command and "$jobstates" and related parameters can report on
parent shell jobs even in subshells.  This is a snapshot of the parent
state, frozen at the point the subshell started.  However, if a subshell
starts its own background jobs, the parent state is discarded in order
to report on those new jobs.

diffstat:

 shells/zsh/Makefile                                        |   7 +-
 shells/zsh/PLIST                                           |  52 +++++++-
 shells/zsh/distinfo                                        |  15 +-
 shells/zsh/patches/patch-Completion_BSD_Command___bsd__pkg |  10 +-
 shells/zsh/patches/patch-Completion_Unix_Command___gpg     |   6 +-
 shells/zsh/patches/patch-aczsh.m4                          |  29 ----
 shells/zsh/patches/patch-configure.ac                      |  88 +-------------
 7 files changed, 66 insertions(+), 141 deletions(-)

diffs (truncated from 551 to 300 lines):

diff -r e1cbf0a3def9 -r 62e26cb3d9f8 shells/zsh/Makefile
--- a/shells/zsh/Makefile       Mon May 16 14:19:23 2022 +0000
+++ b/shells/zsh/Makefile       Mon May 16 14:58:30 2022 +0000
@@ -1,12 +1,12 @@
-# $NetBSD: Makefile,v 1.102 2022/03/12 06:07:48 kim Exp $
+# $NetBSD: Makefile,v 1.103 2022/05/16 14:58:30 ryoon Exp $
 
-DISTNAME=      zsh-5.8.1
+DISTNAME=      zsh-5.9
 CATEGORIES=    shells
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=zsh/}
 EXTRACT_SUFX=  .tar.xz
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=      http://zsh.sourceforge.net/
+HOMEPAGE=      https://zsh.sourceforge.io/
 COMMENT=       The Z shell
 LICENSE=       gnu-gpl-v2 AND zsh
 
@@ -63,6 +63,7 @@
 REPLACE_FILES.zsh=     Functions/Calendar/*
 REPLACE_FILES.zsh+=    Functions/Example/*
 REPLACE_FILES.zsh+=    Functions/Misc/*
+REPLACE_FILES.zsh+=    Functions/VCS_Info/*
 REPLACE_FILES.zsh+=    Misc/globtests*
 REPLACE_FILES.zsh+=    Test/runtests.zsh Test/ztst.zsh
 REPLACE_FILES.zsh+=    Util/check-tmux-state Util/reporter
diff -r e1cbf0a3def9 -r 62e26cb3d9f8 shells/zsh/PLIST
--- a/shells/zsh/PLIST  Mon May 16 14:19:23 2022 +0000
+++ b/shells/zsh/PLIST  Mon May 16 14:58:30 2022 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.43 2020/02/27 03:05:37 ryoon Exp $
+@comment $NetBSD: PLIST,v 1.44 2022/05/16 14:58:30 ryoon Exp $
 bin/zsh
 bin/${PKGNAME}
 info/zsh.info
@@ -30,6 +30,7 @@
 ${PLIST.dynamic}lib/zsh/${PKGVERSION}/zsh/system.so
 ${PLIST.dynamic}lib/zsh/${PKGVERSION}/zsh/termcap.so
 ${PLIST.dynamic}lib/zsh/${PKGVERSION}/zsh/terminfo.so
+${PLIST.dynamic}lib/zsh/${PKGVERSION}/zsh/watch.so
 ${PLIST.dynamic}lib/zsh/${PKGVERSION}/zsh/zftp.so
 ${PLIST.dynamic}lib/zsh/${PKGVERSION}/zsh/zle.so
 ${PLIST.dynamic}lib/zsh/${PKGVERSION}/zsh/zleparameter.so
@@ -95,8 +96,10 @@
 share/zsh/${PKGVERSION}/functions/VCS_INFO_quilt
 share/zsh/${PKGVERSION}/functions/VCS_INFO_reposub
 share/zsh/${PKGVERSION}/functions/VCS_INFO_set
+share/zsh/${PKGVERSION}/functions/VCS_INFO_set-branch-format
 share/zsh/${PKGVERSION}/functions/VCS_INFO_set-patch-format
 share/zsh/${PKGVERSION}/functions/_SUSEconfig
+share/zsh/${PKGVERSION}/functions/__arguments
 share/zsh/${PKGVERSION}/functions/_a2ps
 share/zsh/${PKGVERSION}/functions/_a2utils
 share/zsh/${PKGVERSION}/functions/_aap
@@ -147,6 +150,7 @@
 share/zsh/${PKGVERSION}/functions/_axi-cache
 share/zsh/${PKGVERSION}/functions/_base64
 share/zsh/${PKGVERSION}/functions/_basename
+share/zsh/${PKGVERSION}/functions/_basenc
 share/zsh/${PKGVERSION}/functions/_bash
 share/zsh/${PKGVERSION}/functions/_bash_completions
 share/zsh/${PKGVERSION}/functions/_baudrates
@@ -182,6 +186,7 @@
 share/zsh/${PKGVERSION}/functions/_call_function
 share/zsh/${PKGVERSION}/functions/_call_program
 share/zsh/${PKGVERSION}/functions/_canonical_paths
+share/zsh/${PKGVERSION}/functions/_capabilities
 share/zsh/${PKGVERSION}/functions/_cat
 share/zsh/${PKGVERSION}/functions/_ccal
 share/zsh/${PKGVERSION}/functions/_cd
@@ -195,6 +200,7 @@
 share/zsh/${PKGVERSION}/functions/_chflags
 share/zsh/${PKGVERSION}/functions/_chkconfig
 share/zsh/${PKGVERSION}/functions/_chmod
+share/zsh/${PKGVERSION}/functions/_choom
 share/zsh/${PKGVERSION}/functions/_chown
 share/zsh/${PKGVERSION}/functions/_chroot
 share/zsh/${PKGVERSION}/functions/_chrt
@@ -235,8 +241,10 @@
 share/zsh/${PKGVERSION}/functions/_crontab
 share/zsh/${PKGVERSION}/functions/_cryptsetup
 share/zsh/${PKGVERSION}/functions/_cscope
+share/zsh/${PKGVERSION}/functions/_csplit
 share/zsh/${PKGVERSION}/functions/_cssh
 share/zsh/${PKGVERSION}/functions/_csup
+share/zsh/${PKGVERSION}/functions/_ctags
 share/zsh/${PKGVERSION}/functions/_ctags_tags
 share/zsh/${PKGVERSION}/functions/_cu
 share/zsh/${PKGVERSION}/functions/_curl
@@ -271,6 +279,7 @@
 share/zsh/${PKGVERSION}/functions/_debfoster
 share/zsh/${PKGVERSION}/functions/_deborphan
 share/zsh/${PKGVERSION}/functions/_debsign
+share/zsh/${PKGVERSION}/functions/_debsnap
 share/zsh/${PKGVERSION}/functions/_debuild
 share/zsh/${PKGVERSION}/functions/_default
 share/zsh/${PKGVERSION}/functions/_defaults
@@ -313,6 +322,8 @@
 share/zsh/${PKGVERSION}/functions/_dpkg_source
 share/zsh/${PKGVERSION}/functions/_dput
 share/zsh/${PKGVERSION}/functions/_drill
+share/zsh/${PKGVERSION}/functions/_dropbox
+share/zsh/${PKGVERSION}/functions/_dscverify
 share/zsh/${PKGVERSION}/functions/_dsh
 share/zsh/${PKGVERSION}/functions/_dtrace
 share/zsh/${PKGVERSION}/functions/_dtruss
@@ -460,6 +471,7 @@
 share/zsh/${PKGVERSION}/functions/_iostat
 share/zsh/${PKGVERSION}/functions/_ip
 share/zsh/${PKGVERSION}/functions/_ipadm
+share/zsh/${PKGVERSION}/functions/_ipfw
 share/zsh/${PKGVERSION}/functions/_ipsec
 share/zsh/${PKGVERSION}/functions/_ipset
 share/zsh/${PKGVERSION}/functions/_iptables
@@ -481,12 +493,15 @@
 share/zsh/${PKGVERSION}/functions/_jot
 share/zsh/${PKGVERSION}/functions/_jq
 share/zsh/${PKGVERSION}/functions/_kdeconnect
+share/zsh/${PKGVERSION}/functions/_kdump
 share/zsh/${PKGVERSION}/functions/_kfmclient
 share/zsh/${PKGVERSION}/functions/_kill
 share/zsh/${PKGVERSION}/functions/_killall
 share/zsh/${PKGVERSION}/functions/_kld
 share/zsh/${PKGVERSION}/functions/_knock
 share/zsh/${PKGVERSION}/functions/_kpartx
+share/zsh/${PKGVERSION}/functions/_ktrace
+share/zsh/${PKGVERSION}/functions/_ktrace_points
 share/zsh/${PKGVERSION}/functions/_kvno
 share/zsh/${PKGVERSION}/functions/_last
 share/zsh/${PKGVERSION}/functions/_ld_debug
@@ -510,7 +525,9 @@
 share/zsh/${PKGVERSION}/functions/_localedef
 share/zsh/${PKGVERSION}/functions/_locales
 share/zsh/${PKGVERSION}/functions/_locate
+share/zsh/${PKGVERSION}/functions/_logger
 share/zsh/${PKGVERSION}/functions/_logical_volumes
+share/zsh/${PKGVERSION}/functions/_login_classes
 share/zsh/${PKGVERSION}/functions/_look
 share/zsh/${PKGVERSION}/functions/_losetup
 share/zsh/${PKGVERSION}/functions/_lp
@@ -520,6 +537,7 @@
 share/zsh/${PKGVERSION}/functions/_lscfg
 share/zsh/${PKGVERSION}/functions/_lsdev
 share/zsh/${PKGVERSION}/functions/_lslv
+share/zsh/${PKGVERSION}/functions/_lsns
 share/zsh/${PKGVERSION}/functions/_lsof
 share/zsh/${PKGVERSION}/functions/_lspv
 share/zsh/${PKGVERSION}/functions/_lsusb
@@ -539,6 +557,8 @@
 share/zsh/${PKGVERSION}/functions/_make
 share/zsh/${PKGVERSION}/functions/_make-kpkg
 share/zsh/${PKGVERSION}/functions/_man
+share/zsh/${PKGVERSION}/functions/_mat
+share/zsh/${PKGVERSION}/functions/_mat2
 share/zsh/${PKGVERSION}/functions/_match
 share/zsh/${PKGVERSION}/functions/_math
 share/zsh/${PKGVERSION}/functions/_math_params
@@ -611,7 +631,9 @@
 share/zsh/${PKGVERSION}/functions/_normal
 share/zsh/${PKGVERSION}/functions/_nothing
 share/zsh/${PKGVERSION}/functions/_npm
+share/zsh/${PKGVERSION}/functions/_nsenter
 share/zsh/${PKGVERSION}/functions/_nslookup
+share/zsh/${PKGVERSION}/functions/_numbers
 share/zsh/${PKGVERSION}/functions/_numfmt
 share/zsh/${PKGVERSION}/functions/_nvram
 share/zsh/${PKGVERSION}/functions/_objdump
@@ -627,6 +649,7 @@
 share/zsh/${PKGVERSION}/functions/_options
 share/zsh/${PKGVERSION}/functions/_options_set
 share/zsh/${PKGVERSION}/functions/_options_unset
+share/zsh/${PKGVERSION}/functions/_opustools
 share/zsh/${PKGVERSION}/functions/_osascript
 share/zsh/${PKGVERSION}/functions/_osc
 share/zsh/${PKGVERSION}/functions/_other_accounts
@@ -646,6 +669,7 @@
 share/zsh/${PKGVERSION}/functions/_pbuilder
 share/zsh/${PKGVERSION}/functions/_pdf
 share/zsh/${PKGVERSION}/functions/_pdftk
+share/zsh/${PKGVERSION}/functions/_perf
 share/zsh/${PKGVERSION}/functions/_perforce
 share/zsh/${PKGVERSION}/functions/_perl
 share/zsh/${PKGVERSION}/functions/_perl_basepods
@@ -653,6 +677,7 @@
 share/zsh/${PKGVERSION}/functions/_perldoc
 share/zsh/${PKGVERSION}/functions/_pfctl
 share/zsh/${PKGVERSION}/functions/_pfexec
+share/zsh/${PKGVERSION}/functions/_pgids
 share/zsh/${PKGVERSION}/functions/_pgrep
 share/zsh/${PKGVERSION}/functions/_php
 share/zsh/${PKGVERSION}/functions/_physical_volumes
@@ -662,6 +687,7 @@
 share/zsh/${PKGVERSION}/functions/_pids
 share/zsh/${PKGVERSION}/functions/_pine
 share/zsh/${PKGVERSION}/functions/_ping
+share/zsh/${PKGVERSION}/functions/_pip
 share/zsh/${PKGVERSION}/functions/_piuparts
 share/zsh/${PKGVERSION}/functions/_pkg-config
 share/zsh/${PKGVERSION}/functions/_pkg5
@@ -683,6 +709,7 @@
 share/zsh/${PKGVERSION}/functions/_postgresql
 share/zsh/${PKGVERSION}/functions/_postscript
 share/zsh/${PKGVERSION}/functions/_powerd
+share/zsh/${PKGVERSION}/functions/_pr
 share/zsh/${PKGVERSION}/functions/_precommand
 share/zsh/${PKGVERSION}/functions/_prefix
 share/zsh/${PKGVERSION}/functions/_print
@@ -699,6 +726,7 @@
 share/zsh/${PKGVERSION}/functions/_pspdf
 share/zsh/${PKGVERSION}/functions/_psutils
 share/zsh/${PKGVERSION}/functions/_ptree
+share/zsh/${PKGVERSION}/functions/_ptx
 share/zsh/${PKGVERSION}/functions/_pump
 share/zsh/${PKGVERSION}/functions/_putclip
 share/zsh/${PKGVERSION}/functions/_pv
@@ -738,6 +766,8 @@
 share/zsh/${PKGVERSION}/functions/_rm
 share/zsh/${PKGVERSION}/functions/_rmdir
 share/zsh/${PKGVERSION}/functions/_route
+share/zsh/${PKGVERSION}/functions/_routing_domains
+share/zsh/${PKGVERSION}/functions/_routing_tables
 share/zsh/${PKGVERSION}/functions/_rpm
 share/zsh/${PKGVERSION}/functions/_rrdtool
 share/zsh/${PKGVERSION}/functions/_rsync
@@ -775,6 +805,7 @@
 share/zsh/${PKGVERSION}/functions/_set_command
 share/zsh/${PKGVERSION}/functions/_setfacl
 share/zsh/${PKGVERSION}/functions/_setopt
+share/zsh/${PKGVERSION}/functions/_setpriv
 share/zsh/${PKGVERSION}/functions/_setsid
 share/zsh/${PKGVERSION}/functions/_setup
 share/zsh/${PKGVERSION}/functions/_setxkbmap
@@ -834,11 +865,15 @@
 share/zsh/${PKGVERSION}/functions/_swanctl
 share/zsh/${PKGVERSION}/functions/_swift
 share/zsh/${PKGVERSION}/functions/_sys_calls
+share/zsh/${PKGVERSION}/functions/_sysclean
 share/zsh/${PKGVERSION}/functions/_sysctl
+share/zsh/${PKGVERSION}/functions/_sysmerge
+share/zsh/${PKGVERSION}/functions/_syspatch
 share/zsh/${PKGVERSION}/functions/_sysrc
 share/zsh/${PKGVERSION}/functions/_sysstat
 share/zsh/${PKGVERSION}/functions/_systat
 share/zsh/${PKGVERSION}/functions/_system_profiler
+share/zsh/${PKGVERSION}/functions/_sysupgrade
 share/zsh/${PKGVERSION}/functions/_tac
 share/zsh/${PKGVERSION}/functions/_tags
 share/zsh/${PKGVERSION}/functions/_tail
@@ -879,6 +914,7 @@
 share/zsh/${PKGVERSION}/functions/_trap
 share/zsh/${PKGVERSION}/functions/_trash
 share/zsh/${PKGVERSION}/functions/_tree
+share/zsh/${PKGVERSION}/functions/_truncate
 share/zsh/${PKGVERSION}/functions/_truss
 share/zsh/${PKGVERSION}/functions/_tty
 share/zsh/${PKGVERSION}/functions/_ttyctl
@@ -897,12 +933,14 @@
 share/zsh/${PKGVERSION}/functions/_uniq
 share/zsh/${PKGVERSION}/functions/_unison
 share/zsh/${PKGVERSION}/functions/_units
+share/zsh/${PKGVERSION}/functions/_unshare
 share/zsh/${PKGVERSION}/functions/_update-alternatives
 share/zsh/${PKGVERSION}/functions/_update-rc.d
 share/zsh/${PKGVERSION}/functions/_uptime
 share/zsh/${PKGVERSION}/functions/_urls
 share/zsh/${PKGVERSION}/functions/_urpmi
 share/zsh/${PKGVERSION}/functions/_urxvt
+share/zsh/${PKGVERSION}/functions/_usbconfig
 share/zsh/${PKGVERSION}/functions/_uscan
 share/zsh/${PKGVERSION}/functions/_user_admin
 share/zsh/${PKGVERSION}/functions/_user_at_host
@@ -915,7 +953,9 @@
 share/zsh/${PKGVERSION}/functions/_values
 share/zsh/${PKGVERSION}/functions/_vared
 share/zsh/${PKGVERSION}/functions/_vars
-share/zsh/${PKGVERSION}/functions/_vcsh
+share/zsh/${PKGVERSION}/functions/_vcs_info
+share/zsh/${PKGVERSION}/functions/_vcs_info_hooks
+share/zsh/${PKGVERSION}/functions/_vi
 share/zsh/${PKGVERSION}/functions/_vim
 share/zsh/${PKGVERSION}/functions/_vim-addons
 share/zsh/${PKGVERSION}/functions/_visudo
@@ -973,6 +1013,7 @@
 share/zsh/${PKGVERSION}/functions/_xdvi
 share/zsh/${PKGVERSION}/functions/_xfig
 share/zsh/${PKGVERSION}/functions/_xft_fonts
+share/zsh/${PKGVERSION}/functions/_xinput
 share/zsh/${PKGVERSION}/functions/_xloadimage
 share/zsh/${PKGVERSION}/functions/_xmlsoft
 share/zsh/${PKGVERSION}/functions/_xmlstarlet
@@ -1006,7 +1047,6 @@
 share/zsh/${PKGVERSION}/functions/_zed
 share/zsh/${PKGVERSION}/functions/_zfs
 share/zsh/${PKGVERSION}/functions/_zfs_dataset
-share/zsh/${PKGVERSION}/functions/_zfs_keysource_props
 share/zsh/${PKGVERSION}/functions/_zfs_pool
 share/zsh/${PKGVERSION}/functions/_zftp
 share/zsh/${PKGVERSION}/functions/_zip
@@ -1017,7 +1057,6 @@



Home | Main Index | Thread Index | Old Index