1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-01 05:16:05 +01:00
Commit graph

11068 commits

Author SHA1 Message Date
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
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
Andrey Butirsky
41e35f24f7 45239: Remove 'appendhistory' from zsh-newuser-install
It is on by default, and new users are unlikely to want to change it.
2020-01-05 17:50:33 +00:00
Oliver Kiddle
6170cd0c17 45218: add more options to swaks completion 2020-01-03 23:02:52 +01:00
Oliver Kiddle
e6c5482dd8 45196: fix completion after make -C, allowing for -C being used multiple times 2020-01-03 23:01:00 +01:00
Daniel Shahaf
759daf2362 unposted (after 45183): Fix yodl error: "contrib.yo:4457: No macro: back(...)". 2020-01-02 16:08:51 +00:00
Daniel Shahaf
b591d43113 45181: Fix workers/45164: ${(S)%%} will now consider the empty string as a potential match. 2020-01-02 16:00:11 +00:00
Stephane Chazelas
da19b67388 45183: Improve documentation examples 2020-01-01 22:02:48 -06:00
Daniel Shahaf
ac964897f4 unposted: Add some tests for ${(S)}, including a regression test for workers/45164. 2020-01-01 13:56:04 +00:00
Daniel Shahaf
9432d9b1cf 45169/0002 (tweaked for trailing newlines): Add an expected-to-fail test for workers/44007. 2020-01-01 13:55:39 +00:00
Daniel Shahaf
7e2c80fcd5 45169/0001: In the test suite, allow test cases to be marked as expected to fail.
See next commit for a use-case.
2020-01-01 13:55:39 +00:00
Daniel Shahaf
6a67d38e96 users/24582 + users/24583: Add regression tests for the previous commit. 2019-12-31 18:43:26 +00:00
Peter Stephenson
c557cee1a6 24581: Fix array assignments in shell word splitting and completion.
Assignments after the first were not recognised as such as without
the full parser the state didn't return to command position.
Fix this in bufferwords() and the completion miniparser.
2019-12-31 18:35:06 +00:00
Daniel Shahaf
f3d18c3fb5 45160: zshexpn: Expand documentation of (S) 2019-12-31 17:22:10 +00:00
Sebastian Gniazdowski
408e75b903 45150 + 45152: zshexpn: Use a more minimal example in the documentation of (#b). 2019-12-28 21:11:47 +00:00
Daniel Shahaf
4a2a15d8dc unposted: internal: Vim ztst support: Add an ftplugin in addition to the syntax highlighter. 2019-12-27 06:11:28 +00:00
dana
02a33dd071 45130: _multi_parts: Always pass -f to compadd if given by caller 2019-12-26 20:26:58 -06:00
dana
ed21a7b700 unposted: zerrmsg(): Fix macro guard missed in previous commit 2019-12-26 14:57:07 -06:00
Daniel Shahaf
7eb1aedc6c unposted: ChangeLog for last commit 2019-12-26 11:51:21 +00:00
Daniel Shahaf
81185f4c61 internal: Allow %L in zerrmsg() in non-debug builds, too.
This will let error messages include long integers.
2019-12-26 11:49:45 +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