1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-09-28 15:01:21 +02:00
Commit Graph

11405 Commits

Author SHA1 Message Date
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
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