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

11981 commits

Author SHA1 Message Date
Mikael Magnusson
6900dded09 49965: _adb: use $CURRENT instead of $#words 2022-04-03 18:34:01 +02:00
Mikael Magnusson
a07d010981 49964: _adb: Complete services for start/stop 2022-04-03 18:34:00 +02:00
Mikael Magnusson
1b62a5a0af 49963: _adb: Fix device serial completion for hostname:port syntax 2022-04-03 18:33:59 +02:00
Mikael Magnusson
8a60e2e214 49962: _adb: Add dumpsys and cmd completion 2022-04-03 18:33:58 +02:00
Mikael Magnusson
76b573fcbd 49961: _adb: handle exec-out like shell 2022-04-03 18:33:57 +02:00
Mikael Magnusson
9eda397354 49957: Brown paper bag for 49915
The code would crash when n == 0. There's not really any point doing any
of this when n is 0 so just skip everything. It also tried to NULL
terminate a list a little to eagerly.
2022-04-03 11:28:14 +02:00
Mikael Magnusson
92f193f7de 49959: _brace_parameter: add (-) 2022-04-03 11:27:28 +02:00
dana
8e83378c90 unposted (see 48073): _fc: Complete new -s option 2022-04-02 22:07:56 -05:00
dana
cfce598a13 unposted: creating-a-release: Normalise white space, clarify some steps
(The need for these changes was discovered during the release of 5.8.1.
Daniel suggested one. They were hinted at in security/107)
2022-04-02 18:38:34 -05:00
Jun-ichi Takimoto
75410bc2a1 49943: offer only timezone files starting with uppercase 2022-04-01 17:50:30 +09:00
Matthew Martin
4ee64f13ce unposted: Fix typo 2022-04-01 00:16:10 -05:00
elig0n
6152200c9b github : Fix typo 2022-03-31 19:23:08 -05:00
Matthew Martin
95749e9e65 49933: Add nonblock to sysopen 2022-03-31 17:40:41 -05:00
Matthew Martin
9e0303b044 49932: Update _brace_parameter # description 2022-03-31 17:40:01 -05:00
Matthew Martin
7fc42de7da 49931: Update _bsd_pkg 2022-03-31 17:39:21 -05:00
Matthew Martin
283fc8596b 49907: Mention _numbers in completion guide 2022-03-31 17:36:21 -05:00
Peter Stephenson
41eb200d66 27639: clarify that ${(#)...} deals with character codes. 2022-03-31 13:57:56 +01:00
Mikael Magnusson
774c634d2e 49926: remove unused variable from 49915 2022-03-30 20:34:37 +02:00
Peter Stephenson
98e4634086 49906 (Bart), 49911: Fixes to querying jobs in subshell.
Don't attempt to query invalid job off end of table, resulting in
crashes from $jobtstates.

If background task started in subshell, look at tatsks within subshell
instead of main shell.  Document and add test.
2022-03-30 09:28:43 +01:00
Mikael Magnusson
f11227f78d 49813: Add missing test 2022-03-30 10:01:03 +02:00
Mikael Magnusson
054ccf7666 49820: Fix a crash when completing with combination of -Q and braces
minimal reproducer .zshrc:

  zstyle ':completion:*' completer _oldlist _complete
  setopt nolistambiguous
  autoload compinit; compinit
  compdef _foo foo;_foo() { compadd -Q -- stash@{{0,1}} }
2022-03-30 08:08:09 +02:00
Mikael Magnusson
d7b8619396 49813: <<<: Document newline behavior and fix optimization
The =(<<<foo) optimization forgot to add a newline, but =(cat<<<foo)
always did, make the behavior consistent, and document it.
2022-03-30 08:07:39 +02:00
Mikael Magnusson
3bf95b91f0 49870: Fix NULL reference in match code more
This reverts "49658: Fix NULL reference in match code." and adds a check
inside the block, as well as a failsafe check at the end.

The above commit (49658) causes a crash due to ll being calculated as
0 which leads to rr being an invalid pointer. Only adding a check for
when ll is 0 just leads to bck-i-search pattern not working at all (the
final hunk).  Restoring the condition and adding an explicit NULL check
for replstr seems to make matters work as intended.
2022-03-30 08:07:39 +02:00
Mikael Magnusson
6a9b3bb290 49915: Efficient dedup for unsorted completions 2022-03-30 08:07:39 +02:00
Mikael Magnusson
48be30e530 49893: Fix comments for UNIQCON/ALL 2022-03-30 08:07:39 +02:00
Jun-ichi Takimoto
596b8e3fae 49910: move multibyte-related f-flagged test from E03 to D07
POSIX requires printf should calculate width/precision in %s conversion
in bytes (not in characters) even in multibyte locale
2022-03-30 10:40:34 +09:00
Jun-ichi Takimoto
6617f19234 49908: reset LC_CTYPE to C during tests
and do not export MODULE_PATH since child zsh will not import it
2022-03-30 09:42:57 +09:00
Bart Schaefer
85f98c3604 49918: Update for 49917 and 49911. 2022-03-29 13:21:42 -07:00
Bart Schaefer
53d6b47d92 49917: change sense of "Ignore insecure ..." answer and use "autoload -r" 2022-03-29 13:18:49 -07:00
Bart Schaefer
bf3ae15f46 Add entry for 49897. 2022-03-28 19:48:22 -07:00
Bart Schaefer
67f932e7c5 49897: Eliminate reliance on $jobstates parameter, fix -P exit status check. 2022-03-28 19:47:14 -07:00
Jun-ichi Takimoto
8154ddc62d 49853 + 49882/49883: make "${arr[*]:off}" compatible with ksh/bash 2022-03-29 11:09:36 +09:00
Peter Stephenson
1e814ba48b 49890: Avoid scanning unallocated memory in saved command line. 2022-03-28 15:27:51 +01:00
Peter Stephenson
57305cf245 49875: completion for info -f.
Use local files if there's a slash in the argument.
2022-03-24 10:37:39 +00:00
Peter Stephenson
587793f818 49845: man page clarification on option scope 2022-03-24 10:35:29 +00:00
Matthew Martin
78649ac725 49852: Add _routing_domains and _routing_tables types 2022-03-18 20:52:18 -05:00
Matthew Martin
8dd733dfd2 49851: _login_class: Complete login.conf.d classes 2022-03-18 20:49:15 -05:00
Bart Schaefer
87d276346f 49844: Fix node reference errors from 49446 and 49448. 2022-03-13 21:07:14 -07:00
Mikael Magnusson
28410bd5bc promptinit: only exclude current theme from preview if no arguments are given 2022-03-08 19:37:21 +01:00
Jun-ichi Takimoto
ee1d622042 49802 (+49804): pass MODULE_PATH to zsh started in test W03 2022-03-06 13:29:31 +09:00
Peter Stephenson
1640457f47 49792: Non-interative shell input is line buffered. 2022-03-03 19:19:35 +00:00
Peter Stephenson
2be2efc122 49787: test for jobs fix in 49783 2022-03-03 19:07:53 +00:00
Daniel Shahaf
cb8edf5bd9 unposted: Fix typo in the previous commit's ChangeLog entry
Found-by: Mehtab Singh Mann <https://github.com/mehtabsinghmann>
2022-03-02 09:41:20 +00:00
Peter Stephenson
6a8aa2aa5a 49783: Consistently use old job table in parameter module 2022-03-01 17:27:42 +00:00
Peter Stephenson
24474bd34a users/27536: Improved history list documentation
Clarify interaction of matching and numbers.
2022-03-01 10:47:49 +00:00
Jun-ichi Takimoto
ef60187efc 49766: _less: add quotes to -" and -# 2022-02-23 11:39:33 +09:00
Jun-ichi Takimoto
a692b980cb 49765: _less: add option --color as synonym for -D 2022-02-23 11:24:39 +09:00
Daniel Shahaf
45182eb4d4 unposted: Fix some typos and markup. 2022-02-22 13:11:02 +00:00
Peter Stephenson
865baf7a25 49672: document "tied" in output from ${(t)...} 2022-02-22 10:00:14 +00:00
Mikael Magnusson
0684c6a762 49769: Mention how to show nanosecond precision 2022-02-22 10:44:49 +01:00