1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-08 09:41:14 +02:00
Commit graph

11042 commits

Author SHA1 Message Date
Daniel Shahaf
ca6f4466e6 45131: Make a function that redefines itself preserve its tracedness.
This makes it easy to apply local tracing ('functions -T') to autoloadable
functions that redefines themselves when first loaded.
2019-12-26 04:20:10 +00:00
Daniel Shahaf
3834c423ab unposted: _stdbuf: Fix mismatch between the long options on the one hand, and the short options and descriptions on the other hand. 2019-12-23 08:25:48 +00:00
Daniel Shahaf
5c5ac5efdb unposted: Fix broken build: 45109 (!) broke Test/Y01completion.ztst. 2019-12-22 04:14:58 +00:00
Daniel Shahaf
f7f2baac5e 45110: zshmisc(1): Fix markup of "try-list" and "always-list". 2019-12-22 03:21:11 +00:00
Daniel Shahaf
a0c0aa41d2 45111: zshmisc(1): Clarify the documentation of 'return' and 'exit' in conjunction with try/always
Having reviewed 20076, 20084, 21734, and 21735, my understanding is that
the original intention was:

- A 'return' in a function does run always-list
- An 'exit' outside a function does not run always-list
- A 'return' outside a function is treated as an 'exit'

All of which are the case today.  The remaining case, of 'exit' used
inside a function, was not specified by the referenced -workers@ posts;
does, as implemented, run the always-list; and furthermore, based in
21734 it's fair to assume that the original documentation was assuming
that 'exit' would be used outside of any function, just like it assumed
'return' would be used inside a function.

Therefore, have the documentation specify only the behaviour of 'exit'
outside any function, and leave the behaviour of 'exit' inside
a function unspecified.  Anyone who relied on the documentation of 'exit'
as documented until this commit would have run into the
documentation/implementation discrepancy described in 45075.
2019-12-22 03:21:09 +00:00
Daniel Shahaf
105ca83aa2 45112: zshmodules: Explicitly document the return values of the 'zstyle' getters -s, -b, and -a. 2019-12-22 03:21:07 +00:00
Daniel Shahaf
6e5bba8cba 45113: vcs_info docs: Clarify documentation of the %p/%u/%a patch-format expandos. 2019-12-22 03:21:04 +00:00
Daniel Shahaf
86db36ab70 45114: vcs_info quilt: Improve support for svn-style patch headers.
Additional lines between the |-separated header line and the actual
log message, as generated by 'svn log -v' and 'svn log -g', are now
supported.

This change affects you if you have quilt patches with 'svn log'-style
information in their headers, regardless of whether you use quilt
standalone, quilt over svn, or quilt over some other VCS.
2019-12-22 03:21:03 +00:00
Daniel Shahaf
41e3518589 45115: vcs_info examples: Make the quilt-patch-dir example friendlier.
- Document that no code at all is necessary for Pareto correctness

- Remove a recommendation to rely on implementation details (${rrn});
  instead, rely only on ${context}, which is a documented API.
2019-12-22 03:21:01 +00:00
Daniel Shahaf
fec98a13fd 45116: vcs_info examples: Add an example of showing Git environment variables. 2019-12-22 03:21:00 +00:00
Daniel Shahaf
fa7e3146fa 45107: ztst.vim: Highlight some more special variables 2019-12-22 03:20:58 +00:00
Daniel Shahaf
f906ba9d37 45108: ztst.vim: Conceal the '>' or '?' on pattern expected output / expected errput lines.
This aligns the expectations given by '*>' and '>' lines.
2019-12-22 03:20:57 +00:00
Daniel Shahaf
43761827f9 45109: Add Vim highlighting file for Test/*.ztst files. 2019-12-22 03:20:55 +00:00
dana
3003463c80 unposted: Test release: 5.7.1-test-2 2019-12-21 21:04:36 -06:00
dana
1a8c69e26f 45101: Adjust white space 2019-12-21 20:58:37 -06:00
dana
90668d8f56 45101: Document new dev/test versioning scheme, clarify other release steps
Also clarified the purpose of dev/test releases as suggested in workers/45104.

Note that the old versioning scheme remains in effect until after 5.8 final
has been released.
2019-12-21 20:52:57 -06:00
Daniel Shahaf
26ec82730d unposted: Group related tests. No functional change. 2019-12-21 11:37:21 +00:00
Daniel Shahaf
04f41c6b6e unposted: Etc/BUGS: Add two bugs discussed on -workers@ this week 2019-12-21 11:37:15 +00:00
dana
6fd4023825 45055: Clarify _files documentation 2019-12-20 15:31:34 -06:00
Peter Stephenson
fd068221b7 45083: Add signal protection to execarith().
Otherwise we could get re-entrancy in memory functions when
setting variables.
2019-12-18 10:51:59 +00:00
Daniel Shahaf
a90e93f454 45076: internal: Simplify handling of try_tryflag. No functional change.
try_tryflag isn't assigned anywhere, other than at initialization and by these
lines, so we don't need to save and restore the value.
2019-12-18 06:01:55 +00:00
Daniel Shahaf
ae7e291873 45066: internal: Document forklevel, locallevel, and exit_pending. 2019-12-18 06:01:50 +00:00
Daniel Shahaf
a370f24137 45065: Make 'make -s' print nothing when it does nothing. 2019-12-18 06:01:49 +00:00
Daniel Shahaf
3c4b3c8798 45064: Fix the mktemp() warning, in debug builds only.
On Linux, linking to mktemp() generates the following warning:
.
    utils.o: In function `gettempname':
    ./Src/utils.c:2229: warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'

The warning cannot be disabled.

Work around that by using mkstemp() instead, and massage its output so
it behaves like mktemp().  See the new comment for further details.
2019-12-18 06:01:47 +00:00
Daniel Shahaf
48ebe82b48 45073: regex-replace docs: Simplify grammar (avoid a double negative, state defaults first). 2019-12-18 00:33:51 +00:00
Daniel Shahaf
8bc4400762 45058: internal: Add symbolic names to possible values of zexit()'s "from_where" parameter. No functional change. 2019-12-17 05:12:36 +00:00
Daniel Shahaf
2cb15a23f8 Add ChangeLog entry for last commit. 2019-12-17 03:14:10 +00:00
Daniel Shahaf
06c2a625b3 unposted: Update comment to reflect variable rename in 41012 (= zsh-5.3.1-182-gd7110d8f0). 2019-12-17 02:46:32 +00:00
Daniel Shahaf
9fd4d3e225 unposted: Fix ChangeLog typo 2019-12-17 02:45:34 +00:00
Peter Stephenson
c53ffc9643 Missed out ChangeLog from previous commit. 2019-12-16 17:12:26 +00:00
Baptiste BEAUPLAT
058cc10054 44698, 45000: Baptiste BEAUPLAT: Completion for sbuild 2019-12-16 12:07:39 +01:00
Aurélien Olivier
2fd17cae1c github #36: Add completion file for GNU Stow 2019-12-16 12:07:33 +01:00
Oliver Kiddle
0655e17644 45035: be explicit about the need for a # in colours specified as hex triplets 2019-12-16 11:21:10 +01:00
Peter Stephenson
1baf0d1f55 45025: fix re-entrancy problem with memory management in readoutput().
This could cause a signal received during $(...) to corrupt memory.
2019-12-15 19:04:04 +00:00
dana
b540d74b2b unposted: Update change log for 5.7.1-test-1
(This change-log update was made after the actual release)
2019-12-14 13:27:14 -06:00
dana
5ed3dde0d2 unposted: Test release: 5.7.1-test-1 2019-12-14 12:50:58 -06:00
Peter Stephenson
cb4dc95643 45009: POSIX_CD needs to suppress some forms of option.
Otherwise forms of argument allowed by POSIX are interpreted as
options instead.
2019-12-12 10:47:00 +00:00
Peter Stephenson
273d669a56 45001: Fix zero-length matches with ${...%...}
As the shortest match is preferred, zero-length matches beat any other.
2019-12-12 10:23:47 +00:00
Martijn Dekker
c578f0a08b 45004: Fix typos in comments 2019-12-11 02:37:39 +00:00
Martijn Dekker
d81238ee95 45003: Fix more documentation typos 2019-12-11 02:37:39 +00:00
Peter Stephenson
ae58388619 44997: GLOB_COMPLETE fix for compctl file completion.
Dashes could cause problems in directory prefixes.
2019-12-10 10:32:48 +00:00
Oliver Kiddle
06e27e940a 44976: fixup describe-key-briefly for visual mode 2019-12-04 22:55:52 +01:00
Sebastian Gniazdowski
6c0ebbe1d9 44970: _brace_parameter: Update the description of S flag 2019-12-04 22:52:28 +01:00
Martijn Dekker
bcde790c88 44981: Fix some typos in the documentation. 2019-12-04 21:31:17 +00:00
Daniel Shahaf
06dddd0b98 Revert "44904: _subversion: Complete multiple comma-separated arguments to --show-item=<TAB>."
This reverts commit b06117ad21.

Reverted upstream in r1870750.
2019-12-03 12:27:13 +00:00
Daniel Shahaf
61262ae282 44960: vcs_info cvs: Fix infinite loop when /CVS exists. 2019-12-03 03:03:05 +00:00
Daniel Shahaf
9e771a0b20 44961: vcs_info svn: Fix infinite loop when /.svn exists. 2019-12-03 02:56:02 +00:00
Daniel Shahaf
ce950dd4b4 44962: vcs_info: Document internal function and variable 2019-12-03 02:56:01 +00:00
Daniel Shahaf
5b4a6dc7e0 44964: zshmisc(1): Document APPEND_CREATE under the append redirection operators, >> and >>!. 2019-12-03 02:54:48 +00:00
dana
3aa53d1248 44969: completion-style-guide: Mention defaults and superfluous descriptions 2019-12-02 17:29:45 -06:00