summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2021-05-1548710: histed + other zed updatesBart Schaefer4-20/+83
2021-05-1548709: suppress error messages from comptryBart Schaefer2-1/+4
2021-05-1548707: fix keymap handling when zed invokes read-from-minibuffer; update docBart Schaefer3-15/+38
2021-05-0648787: Fix command status after failed ifPeter Stephenson3-1/+11
If "if" had a hard error in the condition, and there was no else clause, the command status was incorrectly cleared to zero. Add test.
2021-05-03unposted: FAQ: Move section 3.31 to 2.8dana2-63/+65
See 48613
2021-05-03unposted: docs: Update http:// FAQ links to https://dana3-2/+5
See 48613
2021-05-0348551: docs: Add disclaimer about POSIX compliance and emulation of other shellsdana2-0/+9
2021-05-0348614: getopts: Calculate OPTIND according to POSIX_BUILTINSdana6-2/+52
2021-05-0348767: docs: $SECONDS: Clarify what types may be setDaniel Shahaf2-2/+8
2021-04-2848702: _pandoc: don't use cache, multiple extensions of format, etc.Jun-ichi Takimoto2-261/+119
2021-04-2148606 + 48607 + unposted test: zmathfunc: Force arguments to be numbers and ↵Daniel Shahaf3-4/+24
catch errors.
2021-04-21unposted (cf. 48156): New test.Daniel Shahaf2-0/+7
2021-04-21users/26635 (tweaked): vcs_info hg: Compute the branch name correctly when ↵Daniel Shahaf2-3/+10
get-revision is set and check-for-changes is not Tweak: Simplify an always-true condition. Review-by: Manuel Jacob
2021-04-2048638: mention TYPESET_TO_UNSET in NEWSBart Schaefer2-0/+10
2021-04-2048435 (tweaked): vcs_info docs: applied-string/unapplied-string: Correct an ↵Daniel Shahaf3-3/+67
omission in the documentation and add an example. The example code is a reduced version of my function from workers/47519, with one bug fixed. (In workers/47519, if $1 doesn't contain spaces - which is the case under hg mq - then $H and $s will be set to the same value.) Tweaked: Extended the contrib.yo hunk with details about mq.
2021-04-2048528/0002: vcs_info git docs: ahead/behind commits: Reduce the number of forksDaniel Shahaf2-3/+10
2021-04-2048528/0001: vcs_info git docs: ahead/behind commits: Don't run rev-list when ↵Daniel Shahaf2-0/+8
that would fail
2021-04-1948617: fix misuse of IGNORE_BRACES when initializing debug_indentBart Schaefer2-1/+8
2021-04-1947489: rename standout as italicBart Schaefer2-1/+6
2021-04-19Add -L to add-(zsh|zle)-hook[-widget] completionMarlon Richert3-6/+16
…and hide mutually exclusive options.
2021-04-19github/zsh-completions #792: added completions for opus-tools (opusenc, ↵André Kugland2-0/+74
opusdec & opusinfo)
2021-04-1948619: complete inventory plugins in assignments to ANSIBLE_INVENTORY_ENABLEDOliver Kiddle2-7/+10
2021-04-1948618: update completions for FreeBSD 13Oliver Kiddle7-33/+96
2021-04-1847704: POSIX export and readonly ignore "-p" when parameter names also appearBart Schaefer4-7/+17
2021-04-1848560: add TYPESET_TO_UNSET option to remove initialization of parametersBart Schaefer15-18/+102
Changes typeset such that ${newparam-notset} yields "notset" and "typeset -p newparam" does not show an assignment to the parameter. This is similar to the default behavior of bash and ksh, with minor differences in typeset output. Also add tests for some POSIX incompatibilities plus minor changes for test harness robustness.
2021-04-18unposted: remove an already fixed bug from BUGSJun-ichi Takimoto2-2/+4
This was fixed by commit b6ba74c
2021-04-1748361 (+ 48368 review comments): __arguments: New completion function for ↵Daniel Shahaf2-0/+50
_arguments. In the penultimate paragraph of the comment, the two possibilities for the relative path cover three cases: - The comment is read in the source tree - The comment is read in an installed tree with --enable-function-subdirs - The comment is read in an installed tree with --disable-function-subdirs Review-by: Matthew Martin Review-by: Oliver Kiddle
2021-04-1648513: Let extra-verbose completion show parameter valuesMarlon Richert3-15/+62
2021-04-16unposted: update on bug listOliver Kiddle2-3/+4
2021-04-1648556: new completion for ipfwOliver Kiddle2-0/+329
2021-04-16unposted (cf. 48153): Add tests for max() and min().Daniel Shahaf2-0/+29
2021-04-16unposted: ChangeLog: Correct a bunch of X-Seq references from today.Daniel Shahaf1-8/+8
For future greppers, here's the correct information: e1f5172a4 48574/0008: vcs_info git: Use best practices in an example 2144d0110 48574/0007: vcs_info docs: vcs_info_lastmsg: Correct an ambiguous/wrong description. 517e1777a 48574/0006: vcs_info docs: Change user-context name in an example, to avoid confusion with the special-casing of the value `command' in vcs_info_lastmsg. ebcb20a9c 48574/0005: vcs_info docs: Recommend use of prompt expandos rather than terminal escape sequences. cc833e01f 48574/0004: docs: Document that hook functions may rely on $? (see workers/48570). 9b5f80285 48574/0003: docs: Fix rendering in the man page output d07c945e7 48574/0002 (tweaked): docs: Fix rendering of an example in the man page output 32336eab9 48574/0001: docs: Minor markup tweak
2021-04-1545583/0008: vcs_info git: Use best practices in an exampleDaniel Shahaf2-1/+4
The alias was vulnerable to SHORT_LOOPS syntax, not invokable from scripts, etc..
2021-04-1545583/0007: vcs_info docs: vcs_info_lastmsg: Correct an ambiguous/wrong ↵Daniel Shahaf2-1/+4
description.
2021-04-1545583/0006: vcs_info docs: Change user-context name in an example, to avoid ↵Daniel Shahaf2-2/+6
confusion with the special-casing of the value `command' in vcs_info_lastmsg.
2021-04-1545583/0005: vcs_info docs: Recommend use of prompt expandos rather than ↵Daniel Shahaf2-1/+16
terminal escape sequences.
2021-04-1545583/0004: docs: Document that hook functions may rely on $? (see ↵Daniel Shahaf2-1/+5
workers/48570).
2021-04-1545583/0003: docs: Fix rendering in the man page outputDaniel Shahaf2-2/+5
In the man page output, the text was underlined from the var() to the end of the paragraph. The texi output in affected. For instance, the text `name' in TeX is now slanted Roman (\slshape\rmfamily) rather than slanted teletype (\slshape\ttfamily).
2021-04-1545583/0002 (tweaked): docs: Fix rendering of an example in the man page outputDaniel Shahaf2-0/+5
The texi output was unaffected. However, in the man page on my system, everything after the example() was underlined and not indented.
2021-04-1545583/0001: docs: Minor markup tweakDaniel Shahaf2-1/+5
2021-04-1348522: README: Clarify _alternative changeDaniel Shahaf2-1/+7
2021-04-1348525: vcs_info git docs: ahead/behind commits: Run fewer external programsTim Lee2-6/+7
2021-04-1248439: remove macros that became unnecessary by df48cc8Jun-ichi Takimoto2-26/+21
2021-04-1148504: use SEEK_ macros in fseek() callsOliver Kiddle4-6/+12
2021-04-1145396: readhistfile: avoid thousands of lseek(2) syscalls via ftell()Michael Stapelberg1-6/+10
2021-04-1148466: correct indentation and remove tabs and trailing spacesMarc Chantreux2-29/+32
2021-04-1148445: pluralize tags in _surfrawMarc Chantreux2-8/+11
2021-04-11users/26645: update options in gv completionMarc Chantreux2-1/+9
2021-04-1047794: exec: run final pipeline command in a subshell in sh modebrian m. carlson4-4/+36
zsh typically runs the final command in a pipeline in the main shell instead of a subshell. However, POSIX specifies that all commands in a pipeline run in a subshell, but permits zsh's behavior as an extension. The default /bin/sh implementations on various Linux distros and the BSDs always use a subshell for all components of a pipeline. Since zsh may be used as /bin/sh in some cases (such as macOS Catalina), it makes sense to have the common sh behavior when emulating sh, so do that by checking for being the final item of a multi-item pipeline and creating a subshell in that case. From the comment above execpline(), we know the following: last1 is a flag that this command is the last command in a shell that is about to exit, so we can exec instead of forking. It gets passed all the way down to execcmd() which actually makes the decision. A 0 is always passed if the command is not the last in the pipeline. […] If last1 is zero but the command is at the end of a pipeline, we pass 2 down to execcmd(). So there are three cases to consider in this code: • last1 is 0, which means we are not at the end of a pipeline, in which case we should not change behavior. • last1 is 1, which means we are effectively running in a subshell, because nothing that happens due to the exec is going to affect the actual shell, since it will have been replaced. So there is nothing to do here. • last1 is 2, which means our command is at the end of the pipeline, so in sh mode we should create a subshell by forking. input is nonzero if the input to this process is a pipe that we've opened. At the end of a multi-stage pipeline, it will necessarily be nonzero. Note that several of the tests may appear bizarre, since most developers do not place useless variable assignments directly at the end of a pipeline. However, as the function tests demonstrate, there are cases where assignments may occur when a shell function is used at the end of a command. The remaining assignment tests simply test additional cases, such as the use of local, that would otherwise be untested.
2021-04-1047913: implement CASE_PATHS option to make NO_CASE_GLOB more sensibleBart Schaefer5-1/+31