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

9722 Commits

Author SHA1 Message Date
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
Daniel Shahaf b13e8d16cf unposted: Specify tabs for Makefiles. 2020-03-18 18:18:26 +00:00
Daniel Shahaf a30da73187 45572: _sshfs: Complete some more options 2020-03-17 14:03:50 +00:00
Jun-ichi Takimoto 0bc1edef5a 45536: fix handling of 8bit character under C-locale
correctly escape unprintable 8bit character by using \M-
2020-03-17 15:11:04 +09:00
Daniel Shahaf e5765bfdc8 45541: internal: vcs_info git: Add a test case repository for rebase-apply situations 2020-03-15 00:18:31 +00:00
Daniel Shahaf 4ce4483daf 45539: vcs_info git: In non-interactive rebases, obtain applied patches' names. 2020-03-15 00:18:30 +00:00
Daniel Shahaf e1946bacf8 45540: vcs_info git: In non-interactive rebases, compute patch names for unapplied patches. 2020-03-15 00:18:28 +00:00
Daniel Shahaf 5a1f5cf8ab 45543: vcs_info quilt: Allow quiltcommand to be a function.
Before this commit, it could only be an external command.
2020-03-15 00:18:27 +00:00
Daniel Shahaf 8e128afb2c 45547: vcs_info git: In interactive rebases, process gen-unapplied-string arguments like gen-applied-string arguments are processed.
I consider this a bugfix, since it's unexpected for -applied and
-unapplied to differ about this.
2020-03-15 00:18:25 +00:00
Daniel Shahaf c756545014 45546: vcs_info git: In interactive rebases, properly support the full form of the "exec" verb.
The code before this commit happened to have done the right thing:
"exec" lines were handled by the catchall forward compatibility case,
which happened to have had virtually the same effect as the correct
case.  However, that was merely an accidental result.  This patch makes
the code do the right thing deliberately, rather than by accident.
2020-03-15 00:18:23 +00:00
Daniel Shahaf af57462beb 45545: vcs_info git: In interactive rebases, ignore comment lines. 2020-03-15 00:18:21 +00:00
dana 754658aff3 unposted: _git: Fix copy/paste error in earlier commit that broke `git stash drop`
This was broken by workers/44923 (8aa84bd5fc)
2020-03-13 09:46:14 -05:00
dana cb7aadfd2a 45535: _lz4: Order compression levels numerically 2020-03-13 09:38:25 -05:00
dana c2e46ee43b 45534: _hdiutil: Update image-file extensions, image/disk formats, &c. 2020-03-13 09:38:23 -05:00
dana 3f7b81e24e 45531: _sh: Complete options more accurately
Committing without handling of +x option variants (line 10) pending resolution
of workers/45422
2020-03-13 09:37:37 -05:00
dana 778f391a3b 45537 (tweaked): E02xtrace: Fix inconsistent function-name encoding in preserves-xtrace test
Tweaked per workers/45550, needs workers/45536 to be effective
2020-03-13 08:49:57 -05:00
Daniel Shahaf fd627a504f unposted: .editorconfig: Specify spaces rather than tabs for zsh scripts.
Also specify indent level for vcs_info.
2020-03-12 17:44:27 +00:00
dana 80ddc46e54 45470: C02cond: Simplify '-N cond' test
This fixes an (intermittent?) issue with the test on macOS+APFS, and hopefully
makes it simpler and faster in general
2020-03-11 21:17:12 -05:00
dana 359e0dae2b 45424: completion: Add **/sbin to PATH when completing commands like sudo
* Update _command_names to add **/sbin to PATH when not otherwise overridden
  and _comp_priv_prefix is set. This ensures that, on systems where
  unprivileged users don't have **/sbin in their PATHs, we can still complete
  those commands when they try to run them with e.g. sudo

* Update functions for privilege-gaining commands to use the aforementioned
  mechanism

* Fix some other minor issues in _pfexec and _doas

Changes from the posted diff:

* Fix a minor redundancy in _doas

* Add _c_p_p=( '' ) hack to _su
2020-03-11 16:26:41 -05:00
Romain Porte 0d7f888945 45524: Add completion for dscverify(1) from Debian's devscripts. 2020-03-10 15:31:24 +00:00
Daniel Shahaf 1602016d53 45518 + unposted tweak (change single quotes to double quotes): Fix V01zmotload.ztst test failures when zsh/parameter is dynamically linked (which is the default). 2020-03-09 01:56:26 +00:00
Daniel Shahaf 4ce0cff5e9 unposted: Move a new incompatibility notice.
The change in question was (deliberately) not merged to master before the 5.8
release.  Therefore, it is a "post 5.8" change, even though it was written
when 5.7.1 was the latest release.
2020-03-07 21:50:26 +00:00
Daniel Shahaf 6fc8e8628f Merge remote-tracking branch 'origin/master' into 5.9
* Test/D02glob.ztst:
  On the "unreadable directories can be globbed (users/24619, users/24626)"
  test, resolve conflicts by removing the Cygwin-only skip that has been added
  in master, since the test is passing on this branch.  This effectively reverts
  workers/45492.  See discussion starting in workers/45504.

* origin/master:
  unposted: Remove 'sgi', as that OpenBSD port has been discontinued.
  45509: fix typos in B01cd.ztst
  45490 (+45495 and a test): refactor rlimits.c
  github #49: Fix typo: longson should be loongson
  users/24710: Fix job control problem with sudo.
  45492: skip test added by users/24633 on Cygwin
  45488: COMP_WORDS for bash need "$@"-style quoting
  45487: Missing mod_export declarations for AIX
  45447: Complete vcs_info_hookadd and vcs_info_hookdel. Expose _vcs_info_hooks as a top-level helper function.
  45463: test: kill: Document why we use SIGURG
  45453: builtins: kill: Do not signal current process group when pid is empty
  45452: builtins: kill: Add `kill ''` regression test with explicit sigspec
  45451: builtins: kill: Add basic test suite
  github #48/0002: vcs_info git: properly detect bare repositories
  github #48/0001: vcs_info git: avoid warnings in bare repositories
  unposted: Post-release version bump
  unposted: Release 5.8
  CVE-2019-20044: Update change log for preceding commits
  Update NEWS/README
  Add unsetopt/PRIVILEGED tests
  Clean up error-message white space
  Improve PRIVILEGED fixes (again)
  Improve PRIVILEGED fixes
  Drop privileges securely
  unposted: V01zmodload: Fix failing test from workers/45385
  45423: _su: Improve arg handling, shell look-ups
  unposted: _zip: Recognise '--'
  45385: Add a test for 'zmodload -Fa' preemptively disabling ("blacklisting"?) features.
  unposted: Test release: 5.7.1-test-3
  zsh/system: Fix infinite loop in sysread
  _diff_options: Restore -w completion lost in workers/43351
  unposted: Fix ChangeLog typo.
  45368: Add tests for workers/45367's issue about double slashes in 'cd -P' and /home/daniel/in/zsh.
  45373: Fix ERR_EXIT bug in else branch of if.
  45372: Record a symlink loop bug involving :P
  45365: _git: Fix __git_recent_branches for the case when a commit has an empty message
  45343: Queue signals around arithmetic evaluations
  45344: Document where third-party completion functions should be installed.
  45345: internal: ztst.vim: Fix highlighting of zsh comments in test payload
  unposted: internal: Add some comments and fix indentation.  No functional change.
  45340: internal: Document the difference between paramtab and realparamtab.
  45332: _git: add completion for git-version
  _brace_parameter: add missing \

Conflicts:
	ChangeLog
	Test/D02glob.ztst
	Test/V01zmodload.ztst
2020-03-07 21:36:46 +00:00
Daniel Shahaf 0d3d07c56f unposted: Fix trailing whitespace in test expectations. 2020-03-07 21:32:57 +00:00
Daniel Shahaf dd50f125b5 unposted: Remove 'sgi', as that OpenBSD port has been discontinued.
See https://www.openbsd.org/sgi.html and discussion on github PR #49.
2020-03-06 14:00:34 +00:00
Jun-ichi Takimoto dd85abe825 45509: fix typos in B01cd.ztst 2020-03-06 20:14:21 +09:00
Jun-ichi Takimoto 273da6cc5f 45490 (+45495 and a test): refactor rlimits.c
Use a table of known resouces instead of generating rlimits.h by
rlimits.awk.
2020-03-06 20:12:06 +09:00
Bryan Irvine 2f419b332d github #49: Fix typo: longson should be loongson 2020-03-05 15:44:12 +00:00
Peter Stephenson 14ea665a90 users/24710: Fix job control problem with sudo.
If we use kill to test for continued existence of a process group,
we should check on failure that the error is ESRCH, as EPERM
indicates the group still has memebers but running privileged
so should be left alone.
2020-02-27 20:42:16 +00:00
Jun-ichi Takimoto fe516fccb4 45492: skip test added by users/24633 on Cygwin 2020-02-27 16:08:13 +09:00
Marc f7c6a0008b 45488: COMP_WORDS for bash need "$@"-style quoting 2020-02-25 09:55:28 +00:00
Peter Stephenson a6a1b28b98 45487: Missing mod_export declarations for AIX 2020-02-24 10:55:48 +00:00
Daniel Shahaf 50df0e0bb9 45447: Complete vcs_info_hookadd and vcs_info_hookdel. Expose _vcs_info_hooks as a top-level helper function. 2020-02-19 10:18:30 +00:00
Chris Down 69c247de2f 45463: test: kill: Document why we use SIGURG
See discussion in workers/45460.
2020-02-18 19:35:18 +00:00
Chris Down 5c55b3fb50 45453: builtins: kill: Do not signal current process group when pid is empty
The following case was encountered in the wild:

    % zsh; echo "$?"
    % trap 'exit 5' TERM
    % kill ''
    5

This behaviour seems more likely to be the result of bugs in programs
(e.g. `kill -9 "$unsetvar") rather than being desirable
behaviour to me.  It also seems unintentional judging by the code and
documentation, since it comes about as a result of the fact that:

- `isanum` returns true for empty strings (since an empty string
  technically only consists of digits and minuses...);
- `atoi`, when passed a pointer to an invalid number, returns 0;
- `kill(0, signal)` sends the signal in question to all processes in the
  current process group.

There are (at least) two ways to solve this issue:

1. Add special handling to `kill` to avoid this case. See this patch[0]
   for a version that does that.
2. Change how isanum behaves. Since the only two call sites that use it
   both seem like they should handle the case where the input char array
   is empty, that seems like a reasonable overall change to me.[1]

After this patch:

    % trap 'exit 5' TERM
    % kill ''
    kill: illegal pid:

The regression test for `kill` without a sigspec is also included in
this commit, as previously it's not possible to test it trivially as it
would still kill the test runner in expected-to-fail mode; see
discussion in workers/45449.

0: workers/45426: https://www.zsh.org/mla/workers/2020/msg00251.html
1: The other call site using isanum() is the fg builtin, but in that
   case we just fail later since we can't find any job named '', so no
   big deal either way. It's the kill case which is more concerning.
2020-02-18 12:59:53 +00:00
Chris Down 59258252b5 45452: builtins: kill: Add `kill ''` regression test with explicit sigspec
The version without a sigspec can't be added yet because it would still
kill the test runner even in expected-to-fail mode; see workers/45449
for discussion. For the same reason, we use a signal which is non-fatal
by default and unlikely to be sent by someone else, SIGURG, to do the
expected-to-fail case prior to the fix.
2020-02-18 12:59:52 +00:00
Chris Down cb5d8bfe86 45451: builtins: kill: Add basic test suite
This is not totally comprehensive, but at least it's a start for the
core functionality. In the next commits, we'll also use this base to add
some regression tests.
2020-02-18 12:59:51 +00:00
brian m. carlson 5126096370 github #48/0002: vcs_info git: properly detect bare repositories
We currently detect Git repositories by finding the top level of the
working tree, and if we fail to detect it, assume that we're not in a
repository.  However, there's a case we don't consider: a bare
repository.

Let's detect if the user is in a bare repository by checking if gitdir
is set, and if so, using that if there is no working tree.  We now
detect bare Git repositories with vcs_info, as expected.
2020-02-17 10:03:08 +00:00
brian m. carlson bacad96523 github #48/0001: vcs_info git: avoid warnings in bare repositories
Git 2.25 introduced a change to how git rev-parse --show-toplevel
behaves.  Traditionally, it succeeded with no output if the user was
in a bare repository.  Now it dies, printing an error to standard error.
Consequently, when the user is in a bare repository with a newer Git,
vcs_info prints noisily to standard error.

While this is functionally harmless, it is annoying for the shell to
print messages from Git every time the prompt is printed, so let's
silence the error message.
2020-02-17 10:02:27 +00:00
dana 459e2be810 unposted: Post-release version bump 2020-02-14 16:11:03 -06:00
dana 77d203f3fb unposted: Release 5.8 2020-02-14 16:08:55 -06:00
dana 4bec892059 CVE-2019-20044: Update change log for preceding commits 2020-02-14 16:08:29 -06:00
dana e89060a377 unposted: V01zmodload: Fix failing test from workers/45385 2020-02-14 15:55:52 -06:00
dana dd523255cc 45423: _su: Improve arg handling, shell look-ups
Differences from ML post:

* Properly fix escaping issue with $usr (needs unescaped first)

* Make $shell emptiness check easier to read (per feedback)
2020-02-14 09:42:12 -06:00
dana 8037462895 unposted: _zip: Recognise '--' 2020-02-07 14:05:48 -06:00
Daniel Shahaf 699dfdd0ea 45385: Add a test for 'zmodload -Fa' preemptively disabling ("blacklisting"?) features. 2020-02-07 12:44:53 +00:00
dana 643de93164 unposted: Test release: 5.7.1-test-3 2020-02-06 14:01:53 -06:00
Roman Perepelitsa 754fdc6580 zsh/system: Fix infinite loop in sysread 2020-02-06 13:42:32 -06:00
Martin von Wittich 1f238665f6 _diff_options: Restore -w completion lost in workers/43351 2020-02-06 13:24:00 -06:00
Daniel Shahaf 8a12bd81aa unposted: Fix ChangeLog typo. 2020-02-06 05:55:05 +00:00
Daniel Shahaf 3bcf9641eb 45368: Add tests for workers/45367's issue about double slashes in 'cd -P' and /home/daniel/in/zsh. 2020-02-03 07:09:30 +00:00
Peter Stephenson e01223a26c 45373: Fix ERR_EXIT bug in else branch of if.
The flags need resetting for this branch otherwise e.g. command
substitution with non-zero status doesn't cause exit.
2020-02-02 18:05:47 +00:00
Daniel Shahaf 7a9467e430 45372: Record a symlink loop bug involving :P 2020-02-02 07:36:41 +00:00
WGH e71ba9704f 45365: _git: Fix __git_recent_branches for the case when a commit has an empty message 2020-02-02 07:32:14 +00:00
Daniel Shahaf 581585dfc6 45343: Queue signals around arithmetic evaluations
The queueing added in execarith() in 45083 is reverted since the callee
does this now.
2020-01-29 09:02:49 +00:00
Daniel Shahaf 8dab5bc037 45344: Document where third-party completion functions should be installed. 2020-01-29 09:02:34 +00:00
Daniel Shahaf b4996ea5eb 45342: Add tests for interaction between autoloadable parameters and module loading. 2020-01-29 08:30:47 +00:00
Daniel Shahaf a06143bb30 45345: internal: ztst.vim: Fix highlighting of zsh comments in test payload 2020-01-28 09:24:34 +00:00
Daniel Shahaf 3511169731 unposted: internal: Add some comments and fix indentation. No functional change. 2020-01-26 03:46:00 +00:00
Daniel Shahaf 5e843a3721 45340: internal: Document the difference between paramtab and realparamtab. 2020-01-23 03:21:36 +00:00
Eitan Adler e626f57613 45332: _git: add completion for git-version
Signed-off-by: Eitan Adler <lists@eitanadler.com>
2020-01-19 23:32:37 +00:00
Daniel Shahaf bcd78756c8 45313: _git: Support completion from outside of a worktree when --git-dir/--work-tree are specified on the command line
Revised version of workers/41523.
2020-01-17 21:52:45 +00:00
Daniel Shahaf 7ca2b06501 45304: Do execute the always block even when the try/always block itself is the last command.
Fixes the test added in the previous commit (workers/45305).
2020-01-16 18:29:13 +00:00
Daniel Shahaf fb3865514c Merge branch 'master' into 5.9
* master:
  45305: Add an XFail test: The exec-last-command optimization is applied to try/always.
  45307: zstyle docs: Unoverload a placeholder variable name.
  45306: zstyle docs: Introduce the first synopsis in the same way as all others: with an item()().
  unposted: docs: Fix a cross-reference.
2020-01-16 18:21:41 +00:00
Daniel Shahaf 28e11ac60b 45305: Add an XFail test: The exec-last-command optimization is applied to try/always. 2020-01-16 18:21:11 +00:00
Daniel Shahaf 0a7bfc0bd2 45307: zstyle docs: Unoverload a placeholder variable name.
Use 'pattern' to refer to things matched against contexts and 'metapattern'
to refer to things matched against patterns.
2020-01-16 18:18:17 +00:00
Daniel Shahaf 6f263b5e89 45306: zstyle docs: Introduce the first synopsis in the same way as all others: with an item()(). 2020-01-16 18:18:14 +00:00
Daniel Shahaf 490478378f unposted: docs: Fix a cross-reference. 2020-01-16 16:32:39 +00:00
dana 977e1c75d8 45292: D02glob: Add regression test for macOS stat(2) misbehaviour
On macOS, a privileged stat(2) call can erroneously treat files as
directories, which can produce unexpected glob results. This was reported at
workers/42891. A side-effect of the change from workers/45291 is that it seems
to work around this issue, at least in the obvious cases
2020-01-15 19:31:16 -06:00
Daniel Shahaf edc04bd946 45291: A glob with a trailing slash will now match unreadable/unexecutable directories. 2020-01-15 19:20:33 -06:00
Daniel Shahaf e899c21863 Merge remote-tracking branch 'origin/master' into 5.9
Right now, as we're preparing to tag the 5.8 release, the 5.9 branch is
maintained as a topic branch off master.

* origin/master:
  45287: zshexpn: Describe parameter elision and add some introductory prose
  45302: bin_umask(): Queue signals around umask().
  users/24656: docs: Add an example of setting and querying zstyles
  users/24659: Cross-ref doc for matchers.
  45296: D02glob: Clean up after test from users/24633
  45290: New helper script for listing XFail tests.
  users/24633: Add an xfail test for users/24619.
  unposted: additional typo fix
  45280: _git: add -local variants
  users/24628 (fixed): More doc for selectw-word-style widgets.
  45266: Fix losetup completion, broken in da085b7a20 (41720).
  unposted: Fix punctuation.
  use /dev/fd on Cygwin for process substitution
  unposted: Two additional typo fixes.
  Fix typos reported by codespell in shell code
  Fix typos reported by codespell in Src/
  45269: Fix misspellings in completions and elsewhere.
  45261: _gcc: Detect clang-as-gcc
  unposted: internal: Remove Vim modeline that interferes with ztst.vim.
  unposted: internal: ztst.vim: Use :syn-sync to work around (#x) and "`\\\\\\\\`" confusing the highlighting.
  unposted: internal: zyodl.vim: Support glob qualifiers in example()'s
  unposted: internal: zyodl.vim: Support yodl comments.
  github #44: Allow completion for picocom to list symlinks to character devices
  45245: _gcc: add some clang specific warnings
  45231: _rsync: When completing remote modules, ignore more of the motd.
  unposted: _tac: Eliminate superfluous variable
  45226: _man: Improve completion of file paths
  45184: Clarify documentation of %-sequences understood by compadd -[Xx]
  45239: Remove 'appendhistory' from zsh-newuser-install
  45218: add more options to swaks completion
  45196: fix completion after make -C, allowing for -C being used multiple times
  unposted (after 45183): Fix yodl error: "contrib.yo:4457: No macro: back(...)".
  45181: Fix workers/45164: ${(S)%%} will now consider the empty string as a potential match.
  45183: Improve documentation examples
  unposted: Add some tests for ${(S)}, including a regression test for workers/45164.
  45169/0002 (tweaked for trailing newlines): Add an expected-to-fail test for workers/44007.
  45169/0001: In the test suite, allow test cases to be marked as expected to fail.
  users/24582 + users/24583: Add regression tests for the previous commit.
  24581: Fix array assignments in shell word splitting and completion.
  45160: zshexpn: Expand documentation of (S)
  45150 + 45152: zshexpn: Use a more minimal example in the documentation of (#b).
  unposted: internal: Vim ztst support: Add an ftplugin in addition to the syntax highlighter.
  45130: _multi_parts: Always pass -f to compadd if given by caller
  unposted: zerrmsg(): Fix macro guard missed in previous commit
  unposted: ChangeLog for last commit
  internal: Allow %L in zerrmsg() in non-debug builds, too.
2020-01-15 22:49:09 +00:00
Daniel Shahaf 22c0fe02a5 45288: _git: Complete bisect/new as well as bisect/bad.
Also, complete the bisect/old-$commithash ref names.
2020-01-15 22:41:25 +00:00
Daniel Shahaf c7bc62aa06 45287: zshexpn: Describe parameter elision and add some introductory prose 2020-01-15 22:35:09 +00:00
Daniel Shahaf faa476a4ed 45302: bin_umask(): Queue signals around umask().
Otherwise, a signal handler might create files while the temporary umask
is in effect.
2020-01-15 19:49:45 +00:00
Daniel Shahaf 610b4b3028 users/24656: docs: Add an example of setting and querying zstyles 2020-01-14 17:42:36 +00:00
Peter Stephenson 8406a0d38e users/24659: Cross-ref doc for matchers. 2020-01-14 14:00:03 +00:00
dana 62a1e37ccc 45296: D02glob: Clean up after test from users/24633 2020-01-13 17:43:51 -06:00
Daniel Shahaf 9f8c369ccd 45290: New helper script for listing XFail tests. 2020-01-13 22:48:55 +00:00
Daniel Shahaf 0681be600c users/24633: Add an xfail test for users/24619. 2020-01-12 22:14:10 +00:00
Oliver Kiddle 06a9af4f59 unposted: additional typo fix 2020-01-11 17:41:14 +01:00
Eitan Adler 5482d65d5c 45280: _git: add -local variants
Technically all timezone formats support the "-local" suffix but it is
not meaningful for all of them. As such just list out the specific
formats which it does.

Also adjust the 'default' description
2020-01-11 17:37:44 +01:00
Peter Stephenson 2ce5f6d79a users/24628 (fixed): More doc for selectw-word-style widgets.
Add example of how to add a new binding for a widget that fixes
a particular word behaviour using styles.
2020-01-11 14:07:19 +00:00
Daniel Shahaf 70d6d0d86c 45266: Fix losetup completion, broken in da085b7a20 (41720). 2020-01-10 12:46:38 +00:00
Daniel Shahaf 99acc17bb6 unposted: Fix punctuation. 2020-01-10 12:46:32 +00:00
Jun-ichi Takimoto 5d593cfd54 use /dev/fd on Cygwin for process substitution 2020-01-10 18:46:37 +09:00
Daniel Shahaf 742ab1283b unposted: Two additional typo fixes. 2020-01-09 13:59:05 +00:00
Mikael Magnusson 66caa81ab7 Fix typos reported by codespell in shell code 2020-01-09 14:51:08 +01:00
Jens Schleusener 11dbe4c286 45269: Fix misspellings in completions and elsewhere. 2020-01-09 13:42:02 +00:00
dana 4858e868dc 45261: _gcc: Detect clang-as-gcc 2020-01-08 17:54:46 -06:00
Daniel Shahaf 379d7088d6 unposted: internal: Remove Vim modeline that interferes with ztst.vim.
As an alternative, one can use:

    autocmd BufRead,BufNewFile **/*.ztst setfiletype zsh

(But see Util/ztst-syntax.vim and Util/ztst-ftplugin.vim for an alternative.)
2020-01-07 19:37:41 +00:00
Daniel Shahaf 39d0d4323d unposted: internal: ztst.vim: Use :syn-sync to work around (#x) and "`\\\\\\\\`" confusing the highlighting. 2020-01-07 19:37:41 +00:00
Daniel Shahaf b066ce22d0 unposted: internal: zyodl.vim: Support glob qualifiers in example()'s 2020-01-07 19:37:41 +00:00
Daniel Shahaf 2b9419fd7e unposted: internal: zyodl.vim: Support yodl comments. 2020-01-07 19:37:40 +00:00
Damien Thébault 58ff4adbb0 github #44: Allow completion for picocom to list symlinks to character devices 2020-01-07 14:55:46 +00:00
Eitan Adler 8500403b66 45245: _gcc: add some clang specific warnings 2020-01-06 22:01:09 -06:00
Daniel Shahaf 8192043460 45246: Make --disable-multibyte warn, since the test suite fails in that configuration. 2020-01-06 14:05:21 +00:00
Daniel Shahaf 2dac9c5d20 45213: Make --enable-gdbm default to false, rather than default to true with an unavoidable warning. 2020-01-06 02:29:30 +00:00
Daniel Shahaf 7542732df6 45231: _rsync: When completing remote modules, ignore more of the motd.
We cannot use the --no-motd option because it inhibits the modules
listing.

We cannot look for a blank line because there will not be a blank line
if the "motd file" does not end with a newline.

Looking for tabs is an improvement.  Any tabs in the motd will still
cause extraneous matches, but there's nothing we can do about that.

While here, show the modules in the order listed.
2020-01-06 02:28:54 +00:00
dana 3ff0b189a0 unposted: _tac: Eliminate superfluous variable 2020-01-05 14:51:04 -06:00
dana 0d3a62d931 45226: _man: Improve completion of file paths 2020-01-05 12:13:01 -06:00
dana 2e521d7b63 45184: Clarify documentation of %-sequences understood by compadd -[Xx] 2020-01-05 12:04:46 -06:00