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

11305 commits

Author SHA1 Message Date
Mikael Magnusson
387247864e _brace_parameter: add missing \ 2020-01-19 16:11:14 +01: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
Mikael Magnusson
e6fa0b3b65 Fix typos reported by codespell in Src/ 2020-01-09 14:49:55 +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
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