1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-25 05:10:28 +02:00
Commit graph

11386 commits

Author SHA1 Message Date
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
Mikael Magnusson
d3a6dee9cd unposted: Fix typo 'my be' for typeset 2020-11-12 01:15:38 +01: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
04bd9a44a7 Unposted - fix comment 2020-09-13 17:13:51 -07: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
Mikael Magnusson
0bc559d091 47307: edit-command-line: restrict editing to region if it is active 2020-08-16 18:04:43 +02:00
Mikael Magnusson
841188439b 47306: edit-command-line: add editor style 2020-08-16 18:04:43 +02:00
Mikael Magnusson
d877073959 47305: edit-command-line: when possible, set $BUFFER directly
This avoids the send-break which is both visually unappealing and might
break some use cases where the user wishes to wrap edit-command-line in
another widget.
2020-08-16 18:04:43 +02:00
Mikael Magnusson
b959ec790e 47304: _globflags: support specifying more than one flag where appropriate 2020-08-16 18:04:43 +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
Roman Perepelitsa
a8e31c07a7 unposted: comments explaining how hashtable must be created
See zsh-workers 46277, 46278, 46279.
2020-07-29 08:53:47 +02:00
Roman Perepelitsa
6f6363de94 46275: eliminate undefined behavior caused by redefinition of hashtable
struct hashtable has different set of data members in different
translation units. This is undefined behavior.
2020-07-29 08:27:15 +02:00
Roman Perepelitsa
41e318727e 46268: suppress a useless compiler warning around nice()
From nice(2):

    To detect an error, set errno to 0 before the call, and check
    whether it is nonzero after nice() returns -1.
2020-07-28 11:46:14 +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