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

11727 Commits

Author SHA1 Message Date
Jun-ichi Takimoto 31d42ecb84 49756 + 49758(Daniel): replace LPAR() in FAQ.yo by SUBST(_LPAR_)
In FAQ.yo, macros inside mytt() and tt() are not expanded.
Also includes an update for zyodl.vim by Daniel.
2022-02-15 16:50:21 +09:00
Axel Beckert 2da1f64da7 unposted: Fix one underline length in README (cosmetic) 2022-02-13 19:03:11 +01:00
dana 75c1edde50 unposted: Post-release version bump 2022-02-12 10:34:37 -06:00
dana e10c75d524 unposted: Release 5.8.1
(cherry picked from commit 1a490c7050)
2022-02-12 10:32:37 -06:00
Marc Cornellà 2b66ed35b0 security/82: VCS_Info: Fix typo in hook_com[base-name_orig] assignment
Tweaked per discussion in security/90, security/91

(cherry picked from commit b34d33e3b3)
2022-02-12 10:29:55 -06:00
dana f7fa575a59 CVE-2021-45444: Update NEWS/README
(cherry picked from commit bdc4d70a7e)
2022-02-12 10:29:55 -06:00
Marc Cornellà d2df4c8ee4 security/89: Add patch which can optionally be used to work around CVE-2021-45444 in VCS_Info
(cherry picked from commit fdb8b0ce62)
2022-02-12 10:29:55 -06:00
Oliver Kiddle c3ea1e5d52 security/41: Don't perform PROMPT_SUBST evaluation on %F/%K arguments
Mitigates CVE-2021-45444

(cherry picked from commit c187154f47)
2022-02-12 10:29:55 -06:00
Jun-ichi Takimoto fc18b7c8a2 49730: new completions for csplit, pr, ptx, truncate 2022-02-04 21:17:00 +09:00
Matthew Martin e1405109a6 49731: Add OpenBSD sys{clean,merge,patch,upgrade} completion 2022-02-02 19:29:51 -06:00
Mikael Magnusson 8bf0f0cf45 49694 + doc: Allow using empty STTY= to freeze tty for a single command
Previously, doing this would just run stty with no arguments, which
normally causes it to print some terminal settings to stdout.
2022-01-30 18:14:54 +01:00
Daniel Shahaf 75c3664a62 unposted: vcs_info git: Teach the rebase-apply test case generator to also generate rebase-merge test cases 2022-01-29 16:01:39 +00:00
Daniel Shahaf 10ee9e5bd7 unposted: vcs_info git: Add a missing guard against redefining a function. 2022-01-29 16:01:39 +00:00
Daniel Shahaf 42f1e99f81 unposted: vcs_info git: Deconfuse $EDITOR
Work around <https://github.com/chrisbra/vim-zsh/issues/39>.
2022-01-29 16:01:39 +00:00
Daniel Shahaf c055c6464d unposted: vcs_info: Add Vim modelines
... for consistency with all other vcs_info function files.
2022-01-29 16:01:39 +00:00
Daniel Shahaf ee5e3d0c9d 49723: vcs_info quilt: Use quilt-patch-dir and ${QUILT_PATCHES} even when get-unapplied hasn't been set
This affects the post-quilt hook.  Before this patch, if no patches have
been applied and get-unapplied hasn't been set, the second argument to
that hook would undergo null elision.

The generation of patch subjects for the gen-applied-string,
gen-unapplied-string, and set-patch-format hooks was unaffected since
it was guarded by [[ -n $patches ]].
2022-01-29 11:04:44 +00:00
Daniel Shahaf e52062170a 49722: vcs_info quilt: Refactor for readability. No functional change. 2022-01-29 11:04:43 +00:00
Daniel Shahaf 04513dd5df 49715: _subversion: add: Complete target arguments to this subcommand 2022-01-29 10:08:45 +00:00
Daniel Shahaf a956caa233 49714: _subversion: resolve: Complete conflicted files created by merges, too 2022-01-29 10:08:43 +00:00
Daniel Shahaf a803a5f4c4 49713: _subversion: commit, diff, revert: Update completions for svn 1.7 and newer
* _svn_deletedfiles: Remove.
    The last version of svn(1) under which that function could possibly
    complete anything, svn 1.6.x, was EOLed in 2013.  Newer versions
    don't have a "text-base" directory, so $controlled is set to an
    empty array, so this function returned false for all files, so
    in 'svn rm' (up to the previous commit) all files were completed
    (because that's what '_files -g "*(e:false:)"' does).

* _svn_status: Remove.
    Versions of svn newer than the aforementioned 1.6.x have an
    entries file but never modify it, so the "mtime has changed" check
    would false negative.  Therefore, sequences such as:
    .
        svn <TAB>
        echo >> some/versioned/file
        svn ci <TAB>
    .
    wouldn't offer some/versioned/file.
    .
    Furthermore, completion would offer directories with no changed
    files in them, and even unversioned directories.  Now only changed
    files/directories are offered.

* _cache_svn_status, _cache_svn_mtime: Remove.
    If these hadn't been removed, I would have moved their declarations
    to file scope so _svn_status could be used from outside this file,
    too.

The replacement function, _svn_modified, doesn't have cache support, but
does honour the 'verbose' style to inhibit recursion to subdirectories.
2022-01-29 10:08:42 +00:00
Daniel Shahaf cb2b0e7c6c 49712: _subversion: svn rm: Complete all svn-controlled files, not only missing/deleted files
Note that currently, _svn_controlled matches all files.
2022-01-29 10:08:40 +00:00
Daniel Shahaf 6342512483 49711: _subversion: _svn_status: Don't offer unversioned files
This function is used only by revert, diff, and commit, none of which
can run on unversioned files (those with status '?').
2022-01-29 10:08:39 +00:00
Daniel Shahaf 441f594c9f unposted: vcs_info quilt docs: Fix misspelled style name 2022-01-27 17:34:57 +00:00
Daniel Shahaf b99599b4f4 unposted: vcs_info quilt: Remove a no-op variable assignment 2022-01-27 17:34:57 +00:00
Daniel Shahaf 8460d75869 49709: vcs_info hg: Keep $HGPLAIN set for hooks if it had been set outside vcs_info
If someone does 'HGPLAIN=1 vcs_info', any vcs_info hooks should be called with
HGPLAIN set.  Declaring it 'local' broke that.
2022-01-25 10:11:58 +00:00
Andreas Schneider af0f497247 gitlab !17: Add missing options for quilt setup command 2022-01-23 10:46:52 +00:00
Matt Alexander 2876c25a28 49667: Include US spelling of "grey" ("gray")
Co-authored-by: Daniel Shahaf <d.s@daniel.shahaf.name>
2022-01-01 14:47:53 -08:00
Aaron Schrab 92c80e72aa 49664: Use associative array for third-party completion 2021-12-29 00:29:50 +01:00
Oliver Kiddle 85bf9740a0 49668: update zfs completion 2021-12-29 00:22:33 +01:00
m0viefreak d82604843b 38150: fix off-by-one error in matcher spec parsing 2021-12-24 13:09:25 -08:00
Peter Stephenson 7f240e6aa9 49658: Fix NULL reference in match code.
A test when acquiring the replacement pattern match in the globbing
code erroneously allowed the use of a NULL pointer.  This appears to
be an unnecessary test case added alongside other surgery back in 2008.
2021-12-21 10:31:26 +00:00
Oliver Kiddle b7490d3376 49655 based on 34928 (Daniel Hahler): new pip completion 2021-12-21 01:20:01 +01:00
Oliver Kiddle 6b763233b2 49653: fix array indexing issue introduced with 49518 due to using decimal rather than hex 20
Also avoid comparing the current word against all options when the word
doesn't start with - or +.
2021-12-16 14:27:59 +01:00
Oliver Kiddle 702d773e86 49648 based on github #80 (Vincent Bernat): invert before/since for date glob qualifiers completion 2021-12-16 14:21:19 +01:00
Oliver Kiddle 7cb980b536 49518: fix exclusions for mixed - and + stacked options 2021-12-14 12:30:55 +01:00
Oliver Kiddle 91b7baf259 49646: allow colors in WATCHFMT with %F/%K 2021-12-13 21:06:57 +01:00
Oliver Kiddle 7791a6876c 49645: when completing for the path_dirs option, add a / suffix and follow symlinks 2021-12-13 20:59:25 +01:00
Oliver Kiddle 78c51b34c0 49643: facilitate use of the fake style by always calling _description with the executables tag for command names
Also allow the command-path style to include relative directories.
2021-12-13 20:52:23 +01:00
Oliver Kiddle 6de4bcfcd5 49634, reported by Claes Nästén: revert 28989
Defining _POSIX_C_SOURCE caused issues on Solaris 10 but doesn't seem
to be needed for musl anymore
2021-12-13 20:44:59 +01:00
Oliver Kiddle e2ad321c88 49633: update options for git 2.34 2021-12-07 07:35:59 +01:00
Oliver Kiddle 4e1bd9ebdf 49630: allow zsh to quote matches from bash completions but include a special case for space suffixes 2021-12-02 21:03:57 +01:00
Oliver Kiddle 9fc0e319c9 49631: new logger completion 2021-12-02 21:03:57 +01:00
Oliver Kiddle 4775f4dc12 49629: new Linux perf completion 2021-12-02 21:03:54 +01:00
Daniel Shahaf 7acfb7dfae 49628: Add an xfail test for RPS1/RPROMPT equivalence. 2021-12-01 06:32:54 +00:00
Daniel Shahaf 884cd84722 49624: Expect the test 'All identifiers are variable references in POSIX arithmetic' to pass, as it has been passing since 49611. 2021-12-01 04:20:56 +00:00
Daniel Shahaf 9cc6f8d8c9 unposted: Add whitespace and comments. No functional change. 2021-12-01 03:34:15 +00:00
Daniel Shahaf b2632cd21b 49621: Fix the info Doc build, broken in 49448. 2021-12-01 03:32:03 +00:00
Oliver Kiddle ba225155e4 49612: avoid startup error with clashing non-local module parameter name 2021-11-30 18:36:57 +01:00
Oliver Kiddle b3519a9603 49611 based on 49590 (Martijn Dekker): disable Inf and NaN in math expressions for sh emulation 2021-11-30 18:27:53 +01:00
Oliver Kiddle 07c77dad50 49606: remove old NIS-specific code for retrieving user data 2021-11-28 20:55:02 +01:00