1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-28 19:06:03 +02:00
Commit Graph

9722 Commits

Author SHA1 Message Date
Marlon Richert f4a248f9d3 48180: Start menu selection with select=long-list in menu style 2021-03-17 12:50:57 -05:00
Daniel Shahaf f87b73e677 48147/0002: zmathfunc: Fix bug where the exit code would be non-zero if the expression evaluted to zero. 2021-03-07 21:58:13 +00:00
Daniel Shahaf 6a2a8acf09 48147/0001: tests: Add a unit test for zmathfunc and a regression test for workers/48146 affecting it. 2021-03-07 21:58:12 +00:00
Jacob Gelbman 5ede2c55f1 48105: Update ctags completion with format fix 2021-02-24 09:24:37 +00:00
Jacob Gelbman 055ce78401 48096: New ctags completion 2021-02-23 10:10:34 +00:00
Arseny Maslennikov 8b67c36d92 48094: apply cleanup commands of the current theme on any theme change
* Rename zstyle `cleanup' on the context `:prompt-theme' to `restore'
  everywhere but in prompt_cleanup(). It is only used as a restore
  mechanism now.
* Ensure prompt_cleanup() continues to store its command list in the
  `cleanup' style.
* Clean up before theme switch at the end of set_prompt().
* Prepend every use of prompt_*_setup (which might modify the shell
  state in ways that require cleanup) with a cleanup run.
* Adjust `prompt restore' to do both parts of the newly split restore
  mechanism, cleanup first.
2021-02-22 20:29:55 -08:00
Arseny Maslennikov 5c60ec46ec 47867: Fix RPROMPT typo in prompinit 2021-02-19 18:39:22 -06:00
Peter Stephenson 6bef719302 users/26509: fix for r -L
fc with the -L option should ignore remote entires, rather than
reading them and treating them as an error.
2021-02-18 21:37:08 +00:00
Martijn Dekker 9c0533931c 48073: Add fc -s as POSIX way of rerunning command without starting editor 2021-02-17 10:21:08 +00:00
Justine Tunney 326d9c203b Allow more scripts without #!
This change modifies the zsh binary safety check surrounding execve() so
it can run shell scripts having concatenated binary content. We're using
the same safety check as FreeBSD /bin/sh [1]. POSIX was recently revised
to require this behavior:

    "The input file may be of any type, but the initial portion of the
     file intended to be parsed according to the shell grammar (XREF to
     XSH 2.10.2 Shell Grammar Rules) shall consist of characters and
     shall not contain the NUL character. The shell shall not enforce
     any line length limits."

    "Earlier versions of this standard required that input files to the
     shell be text files except that line lengths were unlimited.
     However, that was overly restrictive in relation to the fact that
     shells can parse a script without a trailing newline, and in
     relation to a common practice of concatenating a shell script
     ending with an 'exit' or 'exec $command' with a binary data payload
     to form a single-file self-extracting archive." [2] [3]

One example use case of such scripts, is the Cosmopolitan C Library [4]
which configuse the GNU Linker to output a polyglot shell+binary format
that runs on Linux / Mac / Windows / FreeBSD / OpenBSD.

[1] 9a1cd36331
[2] http://austingroupbugs.net/view.php?id=1250
[3] http://austingroupbugs.net/view.php?id=1226#c4394
[4] https://justine.lol/cosmopolitan/index.html
2021-02-16 09:16:20 +00:00
Lawrence Velázquez 83cc7c6bf0 47830: Fix some documentation typos 2021-02-16 00:59:14 +00:00
Oliver Kiddle d909dc7323 unposted (Daniel): add exclusion list missed in recent OpenBSD update to locale completion 2021-02-13 01:15:10 +01:00
taiyu 3714ee0b58 github #68: support section suffix completion for man pages
Support prepend and suffix values for insert-sections
Add values for insert-sections for zstyle completion
2021-02-13 01:01:40 +01:00
Joshua Krusell 3d6e5b6231 47905: Add leading '-' to zparseopts option parsing errors 2021-02-13 00:54:59 +01:00
Bart Schaefer 2cf6032a30 47997: Disable XTRACE around user-defined completion widgets. 2021-02-11 19:13:47 -08:00
Oliver Kiddle 073092f89d 47944: update completions for NetBSD 9 2021-02-08 00:40:10 +01:00
Oliver Kiddle 25d69da85c 47943: update completions for DragonflyBSD 5.8.3 2021-02-08 00:06:57 +01:00
Oliver Kiddle 2edac834a8 47932: update completions for procps 3.3.16 2021-02-07 02:54:21 +01:00
Oliver Kiddle b17449352e 47931: update completions for OpenBSD base up to 6.8 2021-02-07 02:37:45 +01:00
Oliver Kiddle 509e84ef44 47930: update completions for FreeBSD base up to 12.2 2021-02-07 02:13:10 +01:00
Oliver Kiddle ceb25d9495 47929: complete newer possible values for the sort style 2021-02-07 01:52:40 +01:00
oxiedi 2b2353fc8f based on github #62: return proper exit status 2021-02-07 01:27:23 +01:00
DCsunset f59b6f6df3 github #66: Add more commands to _todo.sh 2021-02-07 01:02:10 +01:00
oxiedi df7fd1322c github #63: fix regression caused by 44274, with sort style -o could break _values 2021-02-07 00:51:41 +01:00
Semnodime ed160f268a github #72: Fix unix command lldb tab-completion
The --arguments are space (` `) separated, not equal-sign (`=`) separated.
lldb --correct c_arg --wrong=w_arg
2021-02-07 00:25:24 +01:00
aaaz 645c89af6d gitlab !16: Allow spaces between short options and their parameters in _transmission
This matches the summary listed in the `transmission-remote` man page and the program's actual behavior.
2021-02-07 00:10:41 +01:00
Oliver Kiddle 4bea58d0c4 47919: use common function for completing BSD login classes
also update for options to env on FreeBSD and Dragonfly
2021-02-06 00:23:20 +01:00
Oliver Kiddle ba48357315 47918: new util-linux completions for nsenter and unshare 2021-02-06 00:05:48 +01:00
Bart Schaefer b8ec0ddba5 unposted: Add cindex entries for some subsections 2021-02-05 13:50:58 -08:00
Bart Schaefer 465738fc25 47895: Remove trailing spaces from "print -ac" output lines. 2021-02-04 17:52:22 -08:00
Bart Schaefer b803fbaa14 47865: More tests for globbing in restricted directories 2021-02-04 17:03:46 -08:00
Bart Schaefer 6db45b94d8 47889: Update csh aliasing equivalences 2021-02-04 17:01:07 -08:00
Joshua Krusell 9120d1e841 47899: Improve error message from zparseopts. 2021-02-03 11:33:47 +00:00
Jun-ichi Takimoto 93c4cc0d8f 47883: _awk: support gawk ver.5 2021-02-01 09:40:34 +09:00
Peter Stephenson 8f42ecd8ee 47873: Improve completion within dynamic directory names 2021-01-27 11:16:55 +00:00
GammaFunction 5d14b6eb71 47744: Fix vi repeats with hooks in use. 2021-01-27 10:04:40 +00:00
Daniel Shahaf e15dce8ced unposted: Etc/FAQ.yo: Fix a typo in the front matter. 2021-01-26 20:51:19 +00:00
Paul Seyfert 07765d5901 github #71: _xrandr: Complete providers
* complete `xrandr --setprovideroutputsource` by calling `xrandr
   --listproviders`
2021-01-24 13:32:05 -06:00
Bart Schaefer b374f7b318 users/26406: preserve caller setopts in zargs 2021-01-23 13:25:24 -08:00
Jun-ichi Takimoto 6e20f0e3d1 47849: do not skip tests requiring zpty on Cygwin 2021-01-20 13:49:42 +09:00
Peiyuan Song bf8ca5f019 47840: make zpty module work on Cygwin 2021-01-20 13:33:52 +09:00
dana ce0660b7ba NEWS: Catch up on new features 2020-12-12 21:45:19 -06:00
Jun-ichi Takimoto 34eae73490 47731 (+unposted): add run-help assistant for btrfs
also fix format errors in contrib.yo
2020-12-11 17:27:47 +09:00
Samir Benmendil f493b438fd 43946: call run-help for the command given to sudo 2020-12-11 17:20:45 +09:00
Bart Schaefer 5a9e632638 unposted: index compprefuncs and comppostfuncs 2020-12-05 13:29:25 -08:00
Daniel Shahaf 74f4cbfcb6 47716: Etc/BUGS: Add Alekxandr's vcs_info patch. 2020-12-04 15:54:16 +00:00
Bart Schaefer 3499a676fa 47704: fix scope for "private -p" 2020-12-02 20:14:45 -08:00
Bart Schaefer d394bb2277 unposted: missed update from users/26150 commit 2020-12-02 20:10:59 -08:00
ivan tkachenko 038f537a2a 47547: docs: Specify the exact kind of quoting which is assumed when parsing arithmetic expressions 2020-11-16 18:07:53 +00:00
Jun-ichi Takimoto bd647c1565 47560: add includes/prototypes for tests in configure
On macOS 11.0 it is now an error to use a function without prototype.
2020-11-16 20:59:51 +09:00
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