Oliver Kiddle
2644e3097d
users/26107: complete changed files after git diff HEAD
2020-10-29 21:44:19 +01:00
Mikael Magnusson
8773f01f2b
47494, 47495: Add -n option to strftime
2020-10-25 23:06:02 +01:00
Mikael Magnusson
ea64d2fd4b
47302: Test for print -v fix
2020-10-25 23:05:28 +01:00
Jun-ichi Takimoto
b6ba74cd4e
47301: Fix print -v metafication
2020-10-25 23:05:19 +01:00
Roman Perepelitsa
ead29c2a36
Fix a race condition in zf_mkdir -p
...
If ~/foo does not exist and `zf_mkdir -p zf_mkdir -p` is executed
concurrently in multiple shells, it was possible prior to this patch
for the command to fail with EEXIST.
2020-10-23 11:42:30 +02:00
Axel Beckert
da534770fd
47468: Doc/Zsh/contrib.yo: Fix typo
2020-10-18 01:35:13 +02:00
Daniel Shahaf
00d20ed15e
users/26088: docs: zle -R: Clarify that it needs not be called in the normal course of things, but only when an immediate, interim redisplay is desired.
2020-10-03 05:32:35 +00:00
Meng Bo
59a451abae
github #65 : _nmap: Rename option flags (s/_/-/g)
...
Nmap commands that previously included an underscore (--max_rtt_timeout, --send_eth, --host_timeout, etc.) have been renamed to use a hyphen in the preferred format.
2020-09-23 11:00:54 +00:00
Jacob Menke
794edac638
47395: _store_cache: Don't leak the variable ${_cache_dir}.
2020-09-22 07:10:51 +00:00
Bart Schaefer
63b6398b70
47364: Enable extendedglob in pattern with ${(*)name/pattern/replacement}
...
Mikael Magnusson: 47382: Completion for 47364
2020-09-13 16:19:52 -07:00
Stephane Chazelas
24a82b9dad
47352 (+ extra test cases): fix %<n>K prompt expansion
...
Fixed a regression introduced by workers/30496 (5.0.3) whereby %2K would
no longer be the equivalent of %K{2} (%K{green}) in prompt expansion.
That was one missing case where the is_fg flag was not passed along to
match_colour() after code factorisation.
Add tests for the different syntax variants, using echoti
as a reference.
2020-09-10 07:34:56 +01:00
Doug Kearns
0673212f42
unposted: remove periods from completion descriptions
...
As per the completion-style-guide recommendations.
2020-09-06 03:42:33 +10:00
Peter Stephenson
17ee9c5f68
47350: new dropbox command line client completion
2020-09-04 19:56:27 +01:00
Daniel Shahaf
c6a8516361
github #64 : Fix a build-time error when building against ncurses that hadn't been built with --enable-wgetch-events.
...
The --enable-wgetch-events codepath is experimental (according to
ncurses-6.2/INSTALL) and off by default (according to
ncurses-6.2/configure.in). With that codepath disabled, the macro
KEY_EVENT is not provided, which (before this commit) manifested as a
build-time error:
[ 245s] gcc -c -I. -I../../Src -I../../Src -I../../Src/Zle -I. -DHAVE_CONFIG_H -DMODULE -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -fPIE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -fPIC -o curses..o curses.c
[ 246s] In file included from curses.c:210:
[ 246s] curses_keys.h:93:15: error: 'KEY_EVENT' undeclared here (not in a function); did you mean 'KEY_RESET'?
[ 246s] 93 | {"EVENT", KEY_EVENT},
[ 246s] | ^~~~~~~~~
[ 246s] | KEY_RESET
curses_keys.h is only used for setting the "kevent" output parameter of
'zcurses input' (and the associated $zcurses_keycodes special variable),
so there's no harm in just leaving KEY_EVENT out of it. (That codepath
deals gracefully with numeric values that don't correspond to any of the
known compile-time values, as that can happen whenever the build- and
run-time versions of ncurses don't provide the same set of KEY_* macros,
with or without relation to that configure flag.)
Reported by Martin Liska.
2020-08-28 02:54:51 +00:00
Oliver Kiddle
5668cace4a
47328: remove references to old zsh.org mail addresses
2020-08-21 17:43:12 +02:00
Oliver Kiddle
edb5459d61
47322: allow prefix with ssh cipher completion and add matching control for options
2020-08-21 17:41:08 +02:00
Daniel Shahaf
e14e899ab9
47323: _rpmbuild: Complete file arguments after -r/-b/-t.
2020-08-18 13:30:07 +00:00
Mikael Magnusson
01307ac59b
unposted: add ChangeLog entries for previous commits
2020-08-16 18:07:19 +02:00
Daniel Shahaf
1e3aa132de
ChangeLog: Note that the last commit contained a minor unposted tweak.
2020-08-16 15:09:13 +00:00
Daniel Shahaf
06265d2b83
47314: is-at-least false positive (5.8.0.2 / 5.8)
...
Actual behaviour:
% is-at-least 5.8.0.2 5.8 && echo yes || echo no
yes
% is-at-least 5.8.0.2 5.8.0.0 && echo yes || echo no
no
Expected behaviour: Both commands should have printed "no".
2020-08-16 14:24:29 +00:00
Daniel Shahaf
cdafe31e05
47313: docs: Document explicitly that the :P modifier returns a symlink-less path.
2020-08-16 13:17:10 +00:00
Jörg Sommer
8becb89357
47320: Add completion for Linux tool used to adjust process OOM score
2020-08-13 22:19:02 +02:00
Oliver Kiddle
90e1f5d541
47321: update completion for btrfs 5.4
2020-08-13 22:13:22 +02:00
Oliver Kiddle
478d38006a
47319: complete more options to ImageMagick's convert command
2020-08-13 22:09:16 +02:00
Oliver Kiddle
4c3d047161
47294: updates to options in aptitude completion
2020-08-10 13:03:26 +02:00
Oliver Kiddle
394c55709e
47293: lowercase completion descriptions for lp
2020-08-10 13:01:24 +02:00
Daniel Shahaf
1f8adb4785
47308: zsh-development-guide: Document the new X-Seq autoreply bot.
2020-08-10 05:53:15 +00:00
Daniel Shahaf
5448e1611d
47303: vcs_info hg: Fix changing the expansion of %g (hook_com[guards]) in the set-patch-format hook (regression from workers/40480).
...
To reproduce, go to a hg repository with active mq guards and configure
vcs_info as follows:
zstyle '*' get-unapplied true
zstyle ':vcs_info:*set-patch-format*' hooks f
zstyle '*' patch-format '[%g : %G]'
zstyle '*' nopatch-format '[%g : %G]'
zstyle '*' formats '%m'
+vi-f () {
hook_com[guards]+=XXX
}
The regression was first released in 5.3.1-test-2, over three years ago.
2020-08-09 08:07:01 +00:00
Daniel Shahaf
e2be2d061a
unposted: Update documentation for the move to new hosting.
2020-08-08 06:12:17 +00:00
Daniel Shahaf
a2a0293d4f
47296 (+ unposted additional tests and comments): 'repeat' loops: Let the repeat count use $?.
...
It's an arithmetic expression.
2020-08-08 06:11:00 +00:00
Daniel Shahaf
d4da2c73f0
47300: Document the EC_NODUP, EC_DUP, EC_DUPTOK triplet.
...
All uses reviewed; no functional change.
2020-08-08 06:01:32 +00:00
Daniel Shahaf
cab21aff93
unposted: Correct the order of two recent ChangeLog entries
2020-08-08 05:51:06 +00:00
Mikael Magnusson
a1f9b1324d
unposted: fix syntax errors in recently added completers
2020-08-08 00:41:15 +02:00
Mikael Magnusson
6f4cf79140
46280: compinit: add -w to explain why compdump runs
2020-08-05 14:19:14 +02:00
Roman Perepelitsa
b74635aa74
unposted: Fix the format of recent ChangeLog entries.
...
Add the list of changed files to the last three ChangeLog
entries by roman.perepelitsa@gmail.com .
2020-07-30 10:19:57 +02:00
Roman Perepelitsa
22ec4d14e2
unposted: Add missing entries to ChangeLog.
...
The last 3 commits from <roman.perepelitsa@gmail.com> are missing
from ChangeLog. This commit add the missing entries.
2020-07-30 09:43:56 +02:00
Daniel Shahaf
b01e1aec8e
46244 (cont.): Flesh out the TODO from the previous commit.
2020-07-14 18:36:15 +00:00
Daniel Shahaf
b9f9a94862
46244: Start to introduce a release managers keyring.
2020-07-14 18:27:36 +00:00
oxiedi
2516da75a9
github #61 : _parameters: Don't leak the variable $i
2020-07-14 18:16:41 +00:00
Daniel Shahaf
fa51a38955
46240: Make the expansion of manref()() in ztexi.yo match its expansion in zman.yo.
...
The difference was mostly harmless in the common case "(see manref(foo)(42))",
which expanded to "(see man page foo(42))" under ztexi.yo, but in other
contexts the ztexi.yo expansion was was nonsensical; for example:
"the BSD manref(echo)(1) command"
"the string returned by the manref(getlogin)(3) system call"
"advisory file locking (via the manref(fcntl)(2) system call)"
"this is the exact opposite from manref(ls)(1),"
While there, copyedit some uses of manref()().
2020-07-13 14:05:37 +00:00
Daniel Shahaf
b5f24592ad
46183: New XFail test: external command with =(...) on LHS of pipeline cleans up its tempfiles.
2020-07-12 15:57:49 +00:00
Daniel Shahaf
ad47c2d907
unposted (cf. GitHub #11 ): vcs_info hg: docs: Change an example to not use a hex dump incantation that may replace some bytes' values with asterisks.
...
Discussion: https://github.com/zsh-users/zsh/pull/11#issuecomment-457970494 et seq
Incidentally, GitHub #11 is also where workers/39786 (commit
zsh-5.2-578-g74aa45910) was first reported.
2020-07-12 13:06:38 +00:00
Daniel Shahaf
7dfc4f754e
users/24985: Clarify documentation of the ${(n)} and ${(-)} parameter expansion flags, and add a forward compatibility hatch to the latter.
2020-07-12 11:39:34 +00:00
Daniel Shahaf
03407c2928
46204: Fix new test case for the theoretical case of having more than 100 files in the root directory.
2020-07-12 11:37:16 +00:00
Daniel Shahaf
c1fc3afd15
unposted: .editorconfig: For Makefiles, make the indent size equal to tab width.
2020-07-12 11:32:26 +00:00
Cedric Ware
4d7aa71d8e
46152: zsh/system: Re-allow '0' timeout in zsystem flock
2020-07-11 00:14:58 -05:00
Jun-ichi Takimoto
c04a391877
46215: make the test for RM_STAR_SILENT work on wider systems
2020-07-09 19:06:07 +09:00
Oliver Kiddle
781129b838
46216: update for ansible 2.9
2020-07-08 23:54:38 +02:00
Oliver Kiddle
5a34b68ae2
46217: update options for tmux 3.1
2020-07-08 23:52:37 +02:00
Mathias Fredriksson
aa60dd320f
github #60 : Fix completion for a zfs dataset containing spaces
2020-07-08 23:46:37 +02:00
Doron Behar
02f62e5d21
gitlab !15 : modutils completion: Fix FHS assumption
...
Remove calls to programs from /sbin/ with _call_program and to avoid the
system complies to the FHS.
Support modules completion for NixOS and Guix which store their kernel
modules not at /lib/modules.
2020-07-08 18:07:39 +02:00
Oliver Kiddle
57a735f6b9
46201: add guidelines for caching and use of imperative mood in descriptions
2020-07-08 17:47:46 +02:00
Oliver Kiddle
389c853b4a
46195: use showrgb command to get colours if it is available
2020-07-08 17:40:42 +02:00
SATOH Fumiyasu
a0a27473fe
github #50 : Complete hosts in "Match" directive
2020-07-08 17:25:20 +02:00
James Pike
dc8061ebe4
github #53 : Allow specifying directory name for _remote_files
2020-07-08 17:20:10 +02:00
Bart Schaefer
126a3158d5
46189: Ignore exit status of final zpty_flush in comptesteval
2020-07-07 09:36:11 -07:00
Nuri Jung
89618fe37d
github #58 : docs: Note that the zsh/regex syntax is platform-dependent.
2020-07-07 13:27:03 +00:00
Pete Moore
4ab0d047c7
46194: docs: metafaq: Remove spurious closing bracket
2020-07-06 23:41:35 +00:00
Daniel Shahaf
cf134c15a0
46175/0003: Fix the RM_STAR_SILENT bug from the parent commit.
2020-07-05 11:11:59 +00:00
Daniel Shahaf
b58141c4cf
46175/0002: Add a regression test for 46169: the RM_STAR_SILENT logic processes the current directory rather than the root directory.
...
The bug will be fixed in the next commit.
2020-07-05 11:11:59 +00:00
Daniel Shahaf
d1b4e60ff5
46175/0001: Add a unit test for the RM_STAR_SILENT option.
2020-07-05 11:11:59 +00:00
Daniel Shahaf
805b946b53
46174/0002: test harness: Restore indentation after the previous commit. No functional change.
2020-07-05 11:11:22 +00:00
Daniel Shahaf
63fde0b744
46174/0001: test harness: Plug a symlink attack
...
The test harness created tempfiles with a predictable names and sourced
them without verifying they had been created by itself. This opened
anyone who ran the test suite to a symlink attacks from other local
users on the build machine.
Fix this by creating the file whilst NO_CLOBBER and ERR_EXIT are both in
scope, to ensure that we'll abort unless the file really was created as
expected.
Put the existing rm(1) call in a try/always block to help it be unlinked
on test failures, thus reducing the chances of the NO_CLOBBER check
triggering on tempfiles created by earlier test suite runs.
I had first tried to fix this by using the
.
() { ... } =(:)
.
idiom, but couldn't get that to work: it broke the %prep code of X03
with ZTST_verbose unset (its default value) but not with ZTST_verbose=3.
(I tried to set the latter to debug zpty_flush.)
While there, add a needed-in-principle-but-noop-in-this-specific-case (q).
Indentation will be restored in the next commit.
2020-07-05 11:11:22 +00:00
Matthew Martin
4e471c3f89
46168: Update $PWD and call chpwd hook after normalizing path
2020-07-03 21:17:58 -05:00
Daniel Shahaf
b53f465481
unposted (cf. users/24972, users/24978): Use an ASCII hyphen/minus rather than a dash.
2020-07-03 22:17:59 +00:00
Peter Stephenson
4e0058afc5
users/24971: ${(-)var} sorts on signed integers
2020-07-03 21:05:46 +01:00
zsugabubus
19390a1ba8
46097: Fix "assignment to invalid subscript range" error in _rm.
...
See 46090 for details.
2020-06-28 13:08:00 +00:00
Daniel Shahaf
f636cde7b5
46132: docs: Use an itemized list in the documentation of the *(o) glob qualifier.
...
This should be easier to read, both as a tutorial and as a reference.
2020-06-28 13:01:20 +00:00
Daniel Shahaf
a4b4a3a7c7
46131: _git-config: Partly fix a bug whereby a 'foo.ba<TAB>' wouldn't be completed to 'foo.bar.baz'.
...
Now it properly gets completed, but in the case of gpg.openpgp.program,
the description would be shown as "unknown option name", that being the
description of gpg.*.program via `git help -c`, which shadows the
more description of gpg.openpgp.program in $git_options.
2020-06-28 13:01:09 +00:00
Daniel Shahaf
1776422438
46128: _git: Complete more options and diff/merge tools.
2020-06-28 13:01:09 +00:00
Daniel Shahaf
5584badbea
46129: _git-config: Fix a bug where a second trailing dot would be incorrectly offered.
2020-06-28 13:01:09 +00:00
Daniel Shahaf
c1c1fb9b2c
46130: _git-config: Complete some more options.
2020-06-28 13:01:09 +00:00
Miroslav Koškár
c74b3c8919
46140: _git: Fix insufficiently quoted pattern
2020-06-27 20:35:08 +00:00
Miroslav Koškár
d839833e4e
46139: _git: Remove hanging whitespaces
2020-06-27 20:32:39 +00:00
Daniel Shahaf
6f479b7685
unposted (after 46068): Fix a compiler warning.
...
The warning was:
.
warning: passing 'const char *' to parameter of type 'void *'
discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
2020-06-27 03:35:30 +00:00
Daniel Shahaf
0cffb0a6b3
46072 + 46136: Add the 'zle $widget -f nolast' syntax, to improve add-zle-hook-widget support for multiple hook functions.
...
See workers/46004 for the use-case.
2020-06-27 03:09:31 +00:00
Daniel Shahaf
9575f2f1bf
users/24959/0002: Update aliases documentation for the addition of the ALIAS_FUNC_DEF option.
2020-06-27 00:53:02 +00:00
Daniel Shahaf
7f58463dd3
users/24959/0001: Extend documentation of global aliases.
2020-06-27 00:53:02 +00:00
Daniel Shahaf
4e3d08fea8
unposted: docs: Fix some markup and typos.
2020-06-26 18:25:51 +00:00
Peter Stephenson
7865486994
46100: Fix =subst before =(subst)
...
This occurs with SH file expansion ordering.
Add test.
2020-06-26 17:32:02 +01:00
Oliver Kiddle
d14a924c37
unposted c.f. 46034: workaround incompatibility with sh_file_expansion option
2020-06-26 00:46:00 +02:00
Oliver Kiddle
858ddcbd6e
46106: new usbconfig completion
2020-06-26 00:34:37 +02:00
drelo
eec1c48a91
46075: drelo: prefer ip on linux for finding network interfaces
2020-06-26 00:34:36 +02:00
oxiedi
c4540e154f
45895: ignore deduplication patterns in _sequence
2020-06-26 00:34:33 +02:00
Daniel Shahaf
dd6e702ee4
46068 (tweaked) (was: github #57 ): region_highlight: Add memo= support.
...
This is useful when multiple plugins add region_highlight entries and
subsequently want to remove only their own entries. Without this
functionality, recognizing one's region_highlight entries is not trivial
because the 'start' and 'end' offsets are modified by editing of $BUFFER
and the highlight specification may not be unique or distinctive.
The tweaks are as follows:
- Change zfree() to zsfree() per workers/46070.
- Remove the mem.c hunk, as it changed the signature of only one out of
two alternative definitions of zsfree(). (The definition that hunk
touched is the one that's not used by default.)
2020-06-25 11:50:33 +00:00
Daniel Shahaf
304ce85a2a
46102: test harness: Make the XPass message distinct from the Fail message.
...
The new output is:
./Test/B02typeset.ztst: starting.
Test ./Test/B02typeset.ztst was expected to fail, but passed.
Was testing: this is the description that's after the colon on in the ztst file
./Test/B02typeset.ztst: test XPassed.
**************************************
0 successful test scripts, 1 failure, 0 skipped
**************************************
make[1]: *** [Makefile:190: check] Error 1
make: *** [Makefile:263: check] Error 2
The new function is deliberately very similar to ZTST_testfailed() just
above it.
2020-06-25 10:24:11 +00:00
Peter Stephenson
af1c009c3e
46079: Ignore double quotes in math expressions.
...
Treat as white space.
This is required for compatibility and previously had no use in zsh
as it generated an error.
2020-06-23 12:17:32 +01:00
Manuel Jacob
ae0129b49f
46091: Add code to Mercurial VCS backend to show topic if there is any.
...
"Topics" is an experimental concept in Mercurial that augments the
current branching concept (called "named branches").
For more information, see the not always up-to-date Mercurial Wiki page
https://www.mercurial-scm.org/wiki/TopicPlan .
2020-06-22 08:18:38 +00:00
Daniel Shahaf
8bd46bf2a2
46044 (tweaked per Matthew): _units: Correct the path to the units data file on Debian with units 2.00 and newer and on FreeBSD.
2020-06-19 15:32:34 +00:00
Daniel Shahaf
6be112fe74
46067: Add a unit test for workers/46060.
2020-06-18 10:34:11 +00:00
Peter Stephenson
baf4fa3621
46060: Fix spurious actions on exit status 130 or 131.
...
Ensure process has taken a signal before looking for SIGINT or SIGQUIT.
2020-06-18 09:27:05 +01:00
Frederick Zhang
1939db10af
45982: _zfs: add space property
2020-06-17 09:59:58 -04:00
Daniel Shahaf
14513e6ef3
unposted: internal: ztst.vim: Recognize empty "F:" line as well, as the test harness does.
2020-06-17 09:37:50 +00:00
Miroslav Koškár
33361e81bc
46049: docs: Correct the sense of the single-letter abstract of the GLOBAL_RCS option (-d)
2020-06-17 08:13:51 +00:00
Jan Máslo
dc5dfd19a2
gitlab !12 : completion for mat & mat2
2020-06-11 22:46:49 +02:00
Oliver Kiddle
1ee8ecd8ea
46036: fix colouring in prompt completion
2020-06-11 22:34:41 +02:00
Oliver Kiddle
cce88bdb0c
users/24892: fix local declaration with recursive-files style and complete it for zstyle
2020-06-11 22:31:44 +02:00
Daniel Shahaf
c5f12fb732
unposted: zstyle docs: Fix typo.
...
This manifested as a trailing non-underlined ".RE" in the rendered man page.
(I guess that was a man page directive, but I'm not sure how the extraneous
closing parenthesis caused it to be rendered in the output.)
2020-06-10 13:07:56 +00:00
Peter Stephenson
3df604a4be
46026: Add CLOBBER_EMPTY option.
2020-06-09 18:07:01 +01:00
Peter Stephenson
d7e90f1c7c
users/24909: Don't clean up special file list too early.
...
When running a function, remove special files used for substitution
after the function has run rather than before.
2020-06-08 20:52:53 +01:00
Doron Behar
aa7b62e3fa
gitlab !14 (fixup): modutils comp: Fix getting the value of kver from opt_args
2020-06-08 06:23:05 +00:00
Daniel Shahaf
f297132cf0
45932: FAQ (3.1): Update ksh compatibility answer for reserved word typeset.
2020-06-07 01:10:59 +00:00
Daniel Shahaf
43a7e70dad
45933: FAQ: Add "Why does my bash script report an error when I run it under zsh?".
2020-06-07 01:10:59 +00:00
Daniel Shahaf
d3cc1fd33c
45791 (tweaked): FAQ: Explain how to binary search one's dotfiles
2020-06-07 01:08:53 +00:00
Daniel Shahaf
aa58afd68f
unposted: FAQ: Update section number in links to the "The future of zsh" section.
2020-06-07 01:06:12 +00:00
Daniel Shahaf
4034e702e6
unposted: Add users/24904 to Etc/BUGS (a process substitution / forking issue).
2020-06-06 01:01:12 +00:00
Mikael Magnusson
ed23768f77
typeset: Fix leaving corrupted entries in paramtab
2020-06-05 15:42:31 +02:00
Yasuhiro KIMURA
a44f44d6e6
45950: Fix 'make install' in out-of-tree tarball builds.
...
See workers/45936 for the failure mode and workers/45943 for an earlier
revision of the patch.
2020-06-03 01:15:22 +00:00
Matthew Martin
c479107f70
45940: Add _kdump and _ktrace completers and supporting _ktrace_points type
2020-06-01 21:18:25 -05:00
Matthew Martin
7ec05332a2
45939: Add _pgids type
2020-06-01 21:18:23 -05:00
Doron Behar
56fffd5482
gitlab !14 : modutils completion: Fix getting the value of kver from opt_args
...
To get the _value_ of either of the options -S, -k or --set-version,
the (i) subscript flag is not needed.
2020-06-01 08:21:39 +00:00
Bart Schaefer
94e38548e3
45915: fix handling of hyphens in spckword()
2020-05-30 14:31:10 -07:00
Yasuhiro KIMURA
911500d3be
45934: _subversion: Make 'svnliteadmin' completed same as 'svnadmin'
...
In FreeBSD base system svnadmin is installed as 'svnliteadmin'. So
make 'svnliteadmin' completed same as 'svnadmin'.
2020-05-28 21:53:21 +00:00
Daniel Shahaf
c05ff07d9f
unposted: zyodl.vim: Highlight the word "note", like ft=help does.
2020-05-28 19:42:16 +00:00
Daniel Shahaf
8b32df6d4c
unposted: zyodl.vim: Highlight yodl continuation line marker
2020-05-28 19:42:16 +00:00
Daniel Shahaf
fb1aa3fe1e
45923 (with memory leak fixed, cf. 45924): zprof: Don't tally all anonymous functions as though they were a single function named "(anon)".
...
Before:
% zmodload zsh/zprof
% () :
% () :
% zprof
num calls time self name
-----------------------------------------------------------------------------------
1) 2 0.08 0.04 100.00% 0.08 0.04 100.00% (anon)
After:
% zmodload zsh/zprof
% () :
% () :
% zprof
num calls time self name
-----------------------------------------------------------------------------------
1) 1 0.04 0.04 50.45% 0.04 0.04 50.45% (anon) [:3]
2) 1 0.04 0.04 49.55% 0.04 0.04 49.55% (anon) [:2]
2020-05-28 19:40:40 +00:00
Peter Stephenson
40723b3991
45900: Fix issues with escaped newline in $-substitution.
2020-05-23 18:01:26 +01:00
Daniel Shahaf
b3148194d1
45884 (Oliver's, edited by me): Add a few entries.
2020-05-21 16:44:26 +00:00
Daniel Shahaf
c7da34dd71
45862: Add test cases for 45843#1 and 45843#2, adapted from Aaron Esau and pws.
2020-05-20 00:48:41 +00:00
Eitan Adler
c528c27ade
unposted: fix date of previous commit
2020-05-17 17:06:04 -07:00
Eitan Adler
1beaa8413e
unposted: bump config.guess and config.sub
...
Problem
config.guess and config.sub are out of dated reducing cross-platform
compatibly.
Solution
Update them.
2020-05-17 16:16:19 -07:00
Matthew Martin
53052335b9
45831: Add _vi completer
2020-05-17 15:18:26 -05:00
Daniel Shahaf
7c2a740d0f
users/24843: zshcompsys(1): Point to the 'format' style from the 'tag-order' style.
2020-05-16 22:08:57 +00:00
Mikael Magnusson
06c0a39895
unposted: Add tests for previous commit
2020-05-12 15:58:41 +02:00
Mikael Magnusson
817d461932
Support ${name:offset:length} with an empty offset
2020-05-12 10:13:02 +02:00
noraj
494f6bcb3c
gitlab !13 : tar supports zstandard (zstd)
...
Problem
Variants of tar based on libarchive or GNU tar can support extracting
zstd based files.
Solution
Add this type of to _tar_archive.
From noraj <gitlab@mg.gitlab.com>
2020-05-09 18:59:03 -07:00
Eitan Adler
d9ad7e6b89
unposted: libarchive tar can extract zip files
...
Problem
Variants of tar based on libarchive can extract zip files but
`tar xf <tab>` does not complete this type of file.
Solution
Add this type of to _tar_archive.
2020-05-07 20:03:39 -07:00
Daniel Shahaf
8498f8864e
unposted: Use alternation patterns rather than brace expansion
...
(Cf. discussion on GitLab !12.)
2020-05-07 22:23:26 +00:00
Daniel Shahaf
ab835f0c37
45764: Add a regression test for 45772. Test by Roman
2020-05-05 21:15:54 +00:00
Peter Stephenson
c486040220
45772: Restore locale on parameter scope end.
...
Check if relevant parameters changes and if so restore system settings.
2020-05-05 20:28:31 +01:00
Daniel Shahaf
455c80e4bb
unposted: Fix typo in ChangeLog
2020-05-04 20:54:06 +00:00
Jun-ichi Takimoto
b87b7f367c
unposted: add a comment about how to add a new resource
2020-05-03 18:38:36 +09:00
Jun-ichi Takimoto
0e6ccfdb2b
45614: update _dnf
2020-05-03 18:28:34 +09:00
Daniel Shahaf
d128bc0bd4
45731: _debsnap: New completion function.
2020-05-03 01:29:05 +00:00
Daniel Shahaf
deca7c9285
45730: _arguments: Add the -0 flag, which makes $opt_args be populated sanely.
...
Also, write/extend docstrings for sepjoin() and zjoin().
2020-05-03 01:27:36 +00:00
Daniel Shahaf
4d2bcf2fe7
45729: internal: Add a second parameter to zlinklist2array(), analogously to hlinklist2array().
...
Will be used in the next commit.
2020-05-03 01:27:36 +00:00
Daniel Shahaf
d800c38507
unposted: zyodl.vim: Use 'conceal' for some macros that expand to a single character.
2020-05-02 01:31:46 +00:00
Daniel Shahaf
34d69acbef
45737 (+ docs, and update the test from 45722): zstyle: When determining the weight (specificity) of a pattern, consider the number of components before anything else, as documented.
2020-05-02 01:12:07 +00:00
Daniel Shahaf
95adde8ddc
unposted: Revert unintentional move from 45722.
2020-05-02 00:55:52 +00:00
Daniel Shahaf
7f73edad7a
45739: docs: Clarifications about zstyle patterns.
...
- Consistently use the term "pattern" rather than "context" or "style pattern"
- Correct statements about order of precedence of patterns
- Give the rationale for the "rule of thumb"
2020-05-02 00:51:26 +00:00
Daniel Shahaf
5d9f7975a9
45722: docs: Change zstyle example to a non-hierarchical one
2020-05-02 00:51:26 +00:00
Daniel Shahaf
57a3a9a746
45752/0002: _gcc: Complete --output like -o.
2020-05-02 00:48:30 +00:00
Daniel Shahaf
071d7956e6
45752/0001: _gcc: Add .cpp and .hpp to the ignored extensions list.
2020-05-02 00:48:30 +00:00
Benjamin Esham
ff50d96b19
github #56 : typo: Add a single quote that had been missing
2020-04-27 08:04:26 +00:00
Daniel Shahaf
af619f41bc
unposted: README: Give the 'zsystem flock' limit in pretty-printed form as well.
2020-04-21 09:01:38 +00:00
davey hathorn
013c87e3f3
github #54 : Fix dig completion error
2020-04-21 00:26:59 -05:00
dana
3241a13573
unposted: NEWS, README: Document zsh/system changes from workers/45708
2020-04-20 12:12:55 -05:00
dana
1cac862b0f
unposted: zsh/system: Adjust documentation from workers/45708
2020-04-20 12:12:12 -05:00
Cedric Ware
25c9b61a66
45708: zsh/system: Enable sub-second timeout in zsystem flock
2020-04-20 12:10:01 -05:00
dana
f179dbf72a
45702: compsys: Improve documentation of {insert,separate}-sections
2020-04-20 00:06:55 -05:00
Peter Stephenson
28277a84dd
45684: Document - glob qualifier in error cases
2020-04-15 21:33:48 +01:00
dg1727
6ec97e1d48
45661: docs: Clarify the effect of KSH_ARRAYS on the (I) subscript.
2020-04-12 01:26:40 +00:00
Peter Stephenson
66ee4918a1
45660: Fix crash setting vi or emacs mode on command line.
...
Delay setting the option until the module system is set up.
2020-04-09 21:46:20 +01:00
dana
c70d734363
45655: _retrieve_mac_apps: Update for recent macOS
2020-04-05 20:09:10 -05:00
Daniel Shahaf
05b15366f3
45656: Document the -o emacs segfault bug.
2020-04-05 05:44:11 +00:00
Mikael Magnusson
8923d2a618
Add SHORT_REPEAT option
2020-04-02 07:42:16 +02:00
Daniel Shahaf
c57d660764
unposted: Make test platform-independent.
...
Follow-up to the grandparent commit.
2020-04-02 00:10:42 +00:00
dana
2bfe01df6f
45542: P01privileged: Use test-directory owner for auto-determined EUID/EGID
...
Prevents failure when the repo (or its parent) has mode 0700
2020-04-01 17:05:26 -05:00
dana
9818ddeefb
unposted: D02glob: Fix platform-dependent test failure
...
workers/45583 introduced a test failure on macOS, *BSD, and Solaris, where wc
always outputs leading white space
2020-04-01 16:59:32 -05:00
Daniel Shahaf
51091e19cd
45649: completion: Simplify Unison completion. No functional change.
2020-03-29 20:56:20 +00:00
Henri Menke
83f7dc7806
45646: completion: Unison: Honour the $UNISON variable
...
By default Unison uses the ~/.unison directory to store its cache and
profiles. However, this location is configurable through the $UNISON
environment variable. Quoting from the manual [1]:
> If the environment variable UNISON is defined, then its value will be
> used as the name of this directory.
This patch enables users to move the .unison directory and still enjoy
zsh completion for profiles.
[1] https://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/unison-manual.html#unisondir
2020-03-29 20:17:29 +00:00
Gastón Haro
a6610c4a17
github #46 : _git-restore: Complete arguments to the --source option after a '=' sign
2020-03-28 22:49:41 +00:00
Gastón Haro
f306221674
github #46 : Better restrict git-restore(1) file completions
...
Add support to the -S and -W options.
Remove the facility for completing files from the tree specified by the
--source argument since, upon testing in git 2.26.0, that doesn't seem
to be correct behaviour. (Note git-restore(1) says the command is
experimental and its semantics may change.) See discussion on the PR
for details.
2020-03-28 22:49:41 +00:00
Daniel Shahaf
2f2aa360bc
45644: vcs_info git: Fix current patch's name in several cases.
2020-03-28 22:12:33 +00:00
Daniel Shahaf
5e55e3eaf8
unposted: Fix syntax error introduced in 45591.
2020-03-28 00:56:22 +00:00
Daniel Shahaf
5e3f6b60e8
45640: Fix new test when ${PWD}'s value contains symlinks.
2020-03-28 00:46:51 +00:00
Daniel Shahaf
d13d6afb2e
45627: vcs_info git: Under git-am(1) conflicts, pass to the gen-applied-string hook information on already-applied patches.
...
The hook already receives information about the current (topmost
applied) patch and, if the get-unapplied style is set, about future
(unapplied) patches.
Tested in the Functions/VCS_Info/test-repo-git-rebase-apply scenario,
after manually converting the rebase to a «git am». (Specifically,
I ran:
mkdir d
git rebase --abort
git format-patch rebase_from_this..HEAD -o d
git checkout rebase_onto_this
git am d/*
.)
2020-03-27 01:14:42 +00:00
Daniel Shahaf
f207fb90d8
45625: vcs_info svn: Detect the "working copy format is too new" error.
2020-03-27 01:14:42 +00:00
Daniel Shahaf
cb87816b0f
45626: vcs_info: Deduplicate calling the set-branch-format hook.
2020-03-27 01:14:42 +00:00
Daniel Shahaf
b0d020408a
45624: vcs_info: Set $rrn in all backends.
2020-03-27 01:14:42 +00:00
Daniel Shahaf
36df1e4f78
45623: _quilt: Add subcommand descriptions
2020-03-27 01:14:42 +00:00
Daniel Shahaf
174aedcf7f
45622: _quilt: Categorize subcommands
2020-03-27 01:14:42 +00:00
Daniel Shahaf
c4f18c29c7
45584, 45620: zsh/rlimits: Skip the tests for this module when it wasn't compiled in.
2020-03-27 01:14:42 +00:00
Daniel Shahaf
32c4ed3977
45591 (Cf. 45587, 45620): In the test suite, centralize testing that compiled modules can be loaded successfully.
...
Have V01zmodload.ztst check that all modules enabled in config.modules
load successfully. With this change, the test files for individual
modules may assume that if 'zmodload' fails that must be because the
module hadn't been compiled in, and mark themselves as skipped in that
case.
2020-03-27 01:14:42 +00:00
Peter Stephenson
2a9674862e
45616: Remove token from count argument to repeat
2020-03-26 20:54:37 +00:00
Daniel Shahaf
fc286a7c11
45583/0008: Extend tests to prove that what remains of xsymlinks() handles symlink loops gracefully.
2020-03-25 23:49:02 +00:00
Daniel Shahaf
dabfd1f1fb
45583/0007: Remove code that is now unreachable.
2020-03-25 23:49:02 +00:00
Daniel Shahaf
12347c26ce
45583/0006: Don't use xsymlinks() in 'whence -s'.
2020-03-25 23:49:02 +00:00
Daniel Shahaf
db8d16a060
45583/0005: Add a test for bin_whence's symlinks resolution.
2020-03-25 23:49:02 +00:00
Daniel Shahaf
47fc5fe01f
45583/0004: Fix segfault on resolving symlink loops
2020-03-25 23:49:02 +00:00
Daniel Shahaf
12414d8052
45583/0003: chrealpath: Let caller decide how the return value should be allocated.
2020-03-25 23:49:01 +00:00
Daniel Shahaf
38b0e1ff7e
45583/0002: chrealpath: Make symlink resolution optional.
2020-03-25 23:49:01 +00:00
Daniel Shahaf
de587b43ba
45583/0001: Add tests for the segfault on resolving a symlink loop bug (workers/45282).
...
This is workers/45377, extended.
2020-03-25 23:49:01 +00:00
Daniel Shahaf
0903ddb7b9
45590/0002 (in part): zsh/rlimits: Test that ulimit letters are unique.
2020-03-25 22:06:47 +00:00
Jun-ichi Takimoto
88484e9ea8
45601: fix another status in new function -T test
2020-03-25 15:55:19 +09:00
Rin Okuyama
aa93901db2
github #51 : Fix configure for cross build.
...
In order to detect equivalence b/w various rlimit values, use compile
tests instead of run tests. This enables configure script to run in
cross-build environment without any side effects.
From NetBSD/pkgsrc:
http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/shells/zsh/patches/
2020-03-22 23:22:38 +00:00
Peter Stephenson
508b47c750
45601: Fix status in new functions -T test
2020-03-22 18:56:06 +00:00
Peter Stephenson
2b1e5a3d22
45563: %z can be used for zlong in warnings and errors
2020-03-22 18:45:02 +00:00
Daniel Shahaf
aed0cb4408
45583/0009: Add end-of-options guard support to 'function -T'.
2020-03-22 02:23:53 +00:00
Daniel Shahaf
386d9ac8ff
45583/0008: Add the 'function -T' syntax.
...
Config/version.mk was bumped in the previous commit.
2020-03-22 02:23:53 +00:00
Daniel Shahaf
a3c6c5513d
45583/0007: WC_FUNCDEF: Add a placeholder element.
2020-03-22 02:23:53 +00:00
Daniel Shahaf
fd1ef7d770
45583/0006: internal: Add some comments for orientation. No functional change.
2020-03-22 02:23:53 +00:00
Daniel Shahaf
e37df255c1
45583/0005: internal: Document the WC_FUNCDEF data layout for anonymous functions with arguments (follow-up to 29492)
2020-03-22 02:23:52 +00:00
Daniel Shahaf
338a4a299a
45583/0004: internal: Add some comments around wordcodes. No functional change.
2020-03-22 02:23:52 +00:00
Daniel Shahaf
4960699de2
45583/0003: internal: Add some comments around Eccstr. No functional change.
2020-03-22 02:23:52 +00:00
Daniel Shahaf
be73026b07
45583/0002: internal: Reduce some variables' visibility. No functional change.
2020-03-22 02:23:52 +00:00
Daniel Shahaf
e94e828efd
45583/0001: internal: Remove a redundant assignment.
...
The value is overwritten five lines below, without being read in the interim.
2020-03-22 02:23:52 +00:00
Daniel Shahaf
fb3ef09f2d
unposted: Deconfuse $EDITOR's balanced braces mode. No functional change.
2020-03-20 18:05:24 +00:00
Daniel Shahaf
68d2a1bc22
unposted: ${(Z)}: Convert documentation to a description block.
2020-03-20 02:28:11 +00:00
Daniel Shahaf
65f8e90f0d
unposted: internal: ztst.vim: Make sure syntax elements are only hidden if they're followed by something visible
2020-03-20 01:44:06 +00:00