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
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
d9dd1b63e5
unposted (follow-up to 45131): Extra testing by Mikael
2019-12-26 04:24:31 +00:00
Daniel Shahaf
525faae549
45137: zformat: Allow the specifying minimum width and a dot with an empty maximum width.
...
Before this commit, format specs such as '%5.s' would be printed
literally. Now, they are treated as equivalent to '%5s'.
The '.' character is not allowed to be used in specs, so there is no
incompatibility.
2019-12-26 04:21:47 +00:00
Daniel Shahaf
8e0253af02
45138: Add zformat unit tests.
2019-12-26 04:20:24 +00:00
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
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
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
dana
0c59705e9e
unposted (cf. 44967): _alsa-utils: Fix minor syntax error in arg spec
2019-12-02 17:26:55 -06:00
Daniel Shahaf
27a64a16fb
unposted: vcs_info: Add an example of using $functions to find hooks by name.
2019-12-02 01:54:24 +00:00
Oliver Kiddle
a833fe4a18
unposted: another place to complete selinux contexts that was missed in 44781
2019-12-01 22:59:36 +01:00
Oliver Kiddle
6a3e418fb6
44968: cleanup and update objdump and readelf completions
2019-12-01 22:49:47 +01:00
Sebastian Gniazdowski
055113d775
44967: Completion for aplay from alsa-utils
2019-12-01 22:24:16 +01:00
Daniel Shahaf
2acbae3bad
unposted: zstyle: Add a unit test and some comments.
2019-12-01 04:00:17 +00:00
Daniel Shahaf
4bb8c937d8
unposted: _sqlite: Fix syntax error
2019-12-01 00:02:30 +00:00
Daniel Shahaf
98f8a8a980
44958: vcs_info quilt: Avoid forks
2019-11-29 20:57:01 +00:00
Daniel Shahaf
cc3983ee58
44945: vcs_info git: Optimize detection by running fewer external commands.
2019-11-29 20:56:42 +00:00
Daniel Shahaf
dae3e135d8
44948: _subversion: Make _svn_controlled offer everything rather than nothing.
2019-11-29 20:34:34 +00:00
Daniel Shahaf
a4f5c345c8
44947: _subversion: Complete the 'auth', 'changelist', 'patch', 'resolve', and 'x-unshelve' subcommands.
2019-11-29 20:34:32 +00:00
Daniel Shahaf
a6b6b650fb
44946: _subversion: Make _svn_conflicts not offer all files in the directory.
2019-11-29 20:34:30 +00:00
Wayne Davison
95882efbf7
44912: more quoting fixes in _expand
...
Don't set done_quote=1 if the glob result is empty.
2019-11-26 16:27:51 -08:00
Oliver Kiddle
8aa84bd5fc
44923: update options for git 2.24
2019-11-24 22:58:38 +01:00
Oliver Kiddle
5df672b9d7
44896: use opt_args to find base directory and use it for $(CURDIR)
2019-11-24 22:56:21 +01:00
Daniel Shahaf
87db974a84
users/24451: zgetcwd: Add a guard against returning an empty string.
2019-11-19 19:20:38 +00:00
Daniel Shahaf
030440d5b7
unposted: Add smoke test for :P history modifier.
2019-11-19 17:57:13 +00:00
Peter Stephenson
88d14451b0
users/24445: Add :P modifier to history code.
...
This was in the glob qualifier and variable code but got missed out
of the separate history modifier function.
2019-11-18 15:26:17 +00:00
skirit
a8b0d399e5
unposted (salsa.debian.org MR!1): _ip: Complete the -brief option
2019-11-11 16:00:16 +00:00
Daniel Shahaf
b06117ad21
44904: _subversion: Complete multiple comma-separated arguments to --show-item=<TAB>.
...
Upstream revision: r1869578 (for 1.14.0)
2019-11-09 12:39:48 +00:00
Daniel Shahaf
369e4a4057
unposted: _values: Use the formal parameter's name in the docstring.
2019-11-08 14:09:18 +00:00
Daniel Shahaf
ed26bf92d6
44897: _subversion: Complete --show-item=changelist
2019-11-07 12:04:27 +00:00
Oliver Kiddle
d2289b42a7
44895: complete options for state change notifications and other improvements
2019-11-06 21:32:25 +01:00
Eitan Adler
0a296d15ac
44882: add completion of -save-stats flag
2019-11-06 21:26:47 +01:00
Oliver Kiddle
64661103f0
unposted: fix missing local declarations in _sequence
2019-11-06 21:15:20 +01:00
Sebastian Gniazdowski
2c94b597bd
github #41 : Extend _dbus with dbus-launch completion
2019-10-29 15:59:02 +01:00
Oliver Kiddle
248ae0b77e
unposted: tweak to check for openzfs rather than Solaris
2019-10-29 15:55:25 +01:00
Peter Stephenson
8c25d92e11
44864: Avoid inifinite loop in tty init.
...
If we can't grab the terminal in interactive mode, give
up after 100 goes. This is a completely arbitrary choice;
we simply don't know what in the system could change the
result of looping further.
2019-10-28 11:56:19 +00:00
Sebastian Gniazdowski
5be28dac5d
44865: Try harder to link in curses module
2019-10-28 11:51:29 +00:00
dana
9b69e84729
44846: _dates: Fix regression caused by workers/44274
2019-10-18 18:47:21 -05:00
Oliver Kiddle
308295d4d2
c.f. 44831: remove completion functions for long dead projects
2019-10-18 22:57:24 +02:00
Oliver Kiddle
ea78d0d4ae
c.f. 44831: remove completion functions included in upstream projects
2019-10-18 22:52:32 +02:00
Oliver Kiddle
a891557b49
44849: completion updates for changes in OpenBSD 6.6
2019-10-18 22:47:32 +02:00
_RuRo_ (Андрей Стоцкий)
59901e61cb
44841: Better checking of errors from "nice"
2019-10-16 17:41:41 +01:00
Daniel Shahaf
1156b2aa44
44812: _subversion: Fix syntax error in 44726/0001
2019-10-14 01:24:51 +00:00
Daniel Shahaf
c263b79c59
44809: _typeset: Complete 'functions -c'
2019-10-14 01:24:47 +00:00
dana
7b24b2662e
unposted: Add missed ChangeLog entry for workers/44784
2019-10-12 02:07:40 -05:00
dana
c6a14bd341
44767: _description: Ignore -J
2019-10-12 02:02:23 -05:00
dana
b79b779166
44681 (tweaked): _composer: Eliminate questionable eval, fix quoting issue
2019-10-12 02:02:15 -05:00
Daniel Shahaf
72c6dbe1be
unposted: functions -c: Fix typo
2019-10-10 03:45:02 +00:00
Daniel Shahaf
dca638e301
44797: _git-config: Complete unknown options from 'git help -c'.
2019-10-02 17:11:11 +00:00
Oliver Kiddle
d89fad7b4f
44799: new pv completion
2019-10-01 23:13:22 +02:00
Oliver Kiddle
7d2d242b30
44798: completion option update
2019-10-01 23:10:17 +02:00
Oliver Kiddle
934fc7d116
44783, 44791: mark some repeatable options with * in the _arguments specs
2019-09-30 23:20:24 +02:00
Oliver Kiddle
2c03873053
44788: handle newer rpm commands like rpmkeys, rpmsign and update options
2019-09-30 23:14:36 +02:00
Oliver Kiddle
095a012152
44782: new completions for avahi and pkgin
2019-09-27 01:48:17 +02:00
Gautam Iyer
3c761b5f23
gitlab !9 : Rudimentary seafile client completion
2019-09-27 00:44:10 +02:00
Doron Behar
6711985b4b
gitlab !11 : luarocks: Fix/improve logic of cache validation
...
Also: Remove unnecessary quoting of helper function calls.
2019-09-27 00:34:30 +02:00
Oliver Kiddle
4f48ce208b
44781: add completion of SELinux contexts
2019-09-27 00:27:45 +02:00
Oliver Kiddle
81be5d1dce
44780: add completion to getent for the utmpx key on FreeBSD
2019-09-27 00:23:50 +02:00
Oliver Kiddle
0ff02590c3
44779: completion for new git switch and git restore commands
2019-09-27 00:16:54 +02:00
Bart Schaefer
530d6337e6
unposted (see 44772): quote the string argument to zle -U
2019-09-24 10:07:32 -07:00
Jun-ichi Takimoto
39e39910eb
44768: _tar: improve completion of long options
2019-09-20 12:41:54 +09:00
Tobias Schulte
bed4e91681
github #38 : fix completion text for git update-index --chmod
2019-09-18 16:29:47 +00:00
Daniel Hahler
597acaab4f
44722: _make: use --always-make instead of .PHONY for GNU make
...
Using ".PHONY" might actually execute (phony) targets then, while
"--always-make" triggers processing of all targets, respecting `-n`
(`--dry-run`).
(This can be seen with `make -nsp .PHONY` in
https://github.com/neomake/neomake/tree/76b110d49a , where it actually
causes infinite processing then)
".PHONY" was used since the beginning here (37012f06a
[1]).
As for bmake (which also uses `.PHONY`): there does not appear to be a
similar option for it.
While it might work better there (i.e. not causing targets to be run),
it causes an error at least when testing it quickly - which indicates
that it behaves as if using any other non-existing (or special) target
there maybe:
> bmake: don't know how to make .PHONY. Stop
This was added in ecc0a5ece
[2] (workers-39654).
Since it uses `-s -f "$file" -V.ALLTARGETS` with `bmake` before to get
targets explicitly, there might not be a reason for calling `bmake` with
`-nsdg1Fstdout … .PHONY` additionally in the first place?!
1: https://github.com/danielshahaf/zsh/commit/37012f06a
2: https://github.com/danielshahaf/zsh/commit/ecc0a5ece
2019-09-06 08:47:55 +02:00
Daniel Shahaf
2829e32e3c
44726/0002: _subversion: Update --show-item= completion to 1.12.0.
2019-09-04 02:56:54 +00:00
Daniel Shahaf
770dca2c53
44726/0001: _subversion: Use 'svn help -v' to show global options, experimental options, and experimental subcommands (upstream issue SVN-4828, to be released in Subversion 1.13.0)
2019-09-04 02:56:54 +00:00
Ned Batchelder
63cc5279b3
github #37 : Make it easier to understand what "fc -e" does.
2019-09-04 02:33:19 +00:00
Jun-ichi Takimoto
a98e13ed1f
44714: Take account of CDABLE_VARS while checking spelling
2019-08-29 18:21:50 +09:00
Jun-ichi Takimoto
b82c24801f
44710: support RLIMIT_UMTXP on FreeBSD
2019-08-28 10:02:29 +09:00
Jun-ichi Takimoto
3da3fe770a
44709: incluce sys/capability.h only if HAVE_CAP_GET_PROC is defined
2019-08-28 09:39:13 +09:00
Sebastian Gniazdowski
2e87c3f3fb
44712: Prefer any variety of ncurses to other terminal libraries.
...
We rely on its features to provide modules where it is available.
2019-08-27 10:35:07 +01:00
Oliver Kiddle
2b41606fe7
44614: apt list option completion
2019-08-19 17:29:49 +02:00
Lajos Koszti
5ff3529caf
44633: complete ansible-vault actions like create, edit, etc.
2019-08-19 16:25:54 +02:00
Oliver Kiddle
359a8fce00
44587: completion option updates
2019-08-19 16:15:49 +02:00
dana
c6254f2a93
44675: _find: Fix return status
2019-08-17 16:30:34 -05:00
dana
d5ca9fd80f
unposted: NEWS: Mention `functions -c`
2019-08-17 16:30:28 -05:00
Peter Stephenson
d946f22a4c
44664: Fix problem with temporary assignment.
...
"foo=bar builtin" inside a function lost any variable from
enclosing scope.
2019-08-14 15:16:59 +01:00
Peter Stephenson
e0d063a2ad
44635: Don't apply STAT_NOPRINT to backgrounded jobs
2019-08-03 19:48:18 +01:00
Shlomi Fish
90fa6ee042
44637: = doesn't need quoting in awk regexp.
...
Known to cause warnings in gawk 5.
2019-08-03 10:57:02 +01:00
Eric Cook
5fd80faf98
24102: _user_admin subuids and subgids
2019-07-30 09:54:18 +01:00
Kamil Dudka
d6a9e222ec
44582: Fix foregoing commit to use DPUTS() better
2019-07-26 16:36:14 +01:00
Kamil Dudka
f9cd218787
44566: make sure Zle doesn't crash if history entry not found
2019-07-24 17:14:06 +01:00
Oliver Kiddle
a4f3df89ab
44356: complete ansible callback plugins for the relevant environment variable's value
2019-07-19 01:44:20 +02:00
Oliver Kiddle
4b5b1563a8
44551: update for new git changes
2019-07-19 01:42:26 +02:00
Peter Stephenson
ede3e4e61e
44523: Add ZTST_handler capability.
...
Defaults to runtests.zsh but can be something else for alternative
test management.
2019-07-16 10:57:35 +01:00
Peter Stephenson
8cbbc04d97
44509: Prevent crash with modified path / PATH combination.
...
Crash came from "fn() { typeset -U path=($path); unset PATH; }".
Note PATH unset is global as only path was made local.
2019-07-15 09:44:47 +01:00
Peter Stephenson
09385d38ad
44305: Fix zsh_directory_name_generic
...
Longest prefix matching was broken if there were suffixes indicating
further handling.
2019-07-10 15:41:24 +01:00
Peter Stephenson
bbcfdffbc3
unposted: FAQ updates.
...
Typo from previous change; also update old notes on
multibyte support.
2019-07-09 09:22:01 +01:00
Bart Schaefer
cf66eb7adb
43755: Fix state management for repeat uses to avoid clobbering command line when NOT a repeat
2019-07-08 18:01:38 -07:00
Bart Schaefer
5415e1d4df
44502: Quote function name for "autoload -X"
2019-07-08 17:56:57 -07:00
Bart Schaefer
adef791c82
44495: Mention coproc under $!
2019-07-08 17:55:06 -07:00
Peter Stephenson
61a697f977
users/24030 (minor tweak): note on *.{bla,hbl,ahb}.
...
This is an expansion, not a form of pattern match. Describe
the problem and what to do instead.
2019-07-08 14:27:08 +01:00
Peter Stephenson
3bdf4d6641
44480: Don't automatically close externally visible file descroptors.
...
These are descriptors marked FDT_EXTERNAL.
Make all sysopen'ed file descriptors FDT_EXTERNAL.
Make =(...) call closem() consistent with other substitutions.
Document file descriptors are left open.
2019-07-02 13:42:53 +01:00
Martijn Dekker
700ec49581
44469: correct error on missing option argument
2019-07-01 09:42:22 +01:00
Peter Stephenson
4384fdc7f0
44446: Fix here document with file descriptor declarator.
...
Add unit test.
2019-06-24 20:19:19 +01:00
Martijn Dekker
1b1cb44161
44443: POSIX allows exporting readonly variables
2019-06-23 18:36:50 +01:00
Peter Stephenson
b8dc5a7f6d
44435: Handling digita arguments for :h and :t.
...
Pick number of leading or trailing path components to substitute.
Active in history, brace parameters, glob qualifiers.
Add tests for all three environments.
2019-06-20 11:13:05 +01:00
romkatv
80aa807a61
fix multiple bugs in countprompt
...
1. Height off by one in the presence of meta characters at the end of the line.
The following prompt has height 2 but countprompt used to return 3.
PROMPT="${(pl.$COLUMNS..-.)}%f"$'\n'
You can observe the effects of the bug with esc-x followed by reset-prompt.
2. Width off by one when a line is broken in the middle of a wide character.
Assuming COLUMNS=79, the following prompt has width 2 but countprompt used to return 0.
PROMPT="${(pl.40..\u3050.)}" zsh -df
Press ctrl-r or type ls<tab> to observe the effects of the bug.
3. Width off by 1-7 when a line is broken in the middle of a tab.
Assuming COLUMNS=79, the following prompt has width 1 but countprompt used to return 0.
PROMPT="${(pl.10..\t.)}" zsh -df
Press Ctrl-R or type ls<TAB> to observe the effects of the bug.
2019-06-19 15:56:05 +01:00
Peter Stephenson
eaba3ab2da
Missed previous ChangeLog entry
2019-06-19 10:10:20 +01:00
Stephane Chazelas
0b1725dcfc
44387, edited: describe some problems with restricted mode
2019-06-06 21:09:42 +01:00
Jun-ichi Takimoto
1d37624ad6
44389: update _iostat and _vmstat for BSD
...
common parts are separated into _bsd_disks and _fbsd_device_types
2019-06-03 22:33:10 +09:00
Peter Stephenson
4b85edface
44361: Initialise variables in pattern matching.
...
These are used recursively and it's a bit obscure if there
are case where the value can leak.
2019-05-28 20:53:53 +01:00
Jim
06f5964284
44364: refer to zsh base manual page in zsh all
2019-05-28 09:35:12 +01:00
Oliver Kiddle
f702e17b14
unposted: remove spurious reference to nonexistent completion function
2019-05-23 01:22:50 +02:00
Oliver Kiddle
6a0874cad6
44349: completion option updates
2019-05-23 01:19:02 +02:00
Oliver Kiddle
a531a1ec2d
44345: fix wordcode traversal where ! without a following command could result in a crash
2019-05-23 01:05:01 +02:00
Oliver Kiddle
3de2333b08
44307: allow for atoi() returning a negative number
2019-05-20 00:14:01 +02:00
Oliver Kiddle
09917e558b
44308: update Linux modutils completion
2019-05-20 00:10:55 +02:00
Oliver Kiddle
fae7c85331
44284: combination of -T and -p to typeset crashed the shell.
2019-05-14 23:36:59 +02:00
Oliver Kiddle
b5519b372b
44290: job number exceeding int range and wrapping to a negative number crashed the shell
2019-05-14 23:22:24 +02:00
Oliver Kiddle
d66fd7fcf5
44291: printf with argument specifier out of range for an int crashed the shell
2019-05-14 23:18:32 +02:00
Peter Stephenson
30e356eb1a
44296: "typeset Q= {X}" crashed the shell.
2019-05-14 12:10:10 +01:00
Peter Stephenson
95211f87ed
44259: Ensure we can set signals to default even if ignored.
...
Previously the shell didn't take account of signals marked as
ignored on entry, which was inconsistent with other behaviour.
2019-05-13 09:55:01 +01:00
dana
cebec8926a
unposted: Fix bad encoding in previous Y01 test patch
2019-05-08 18:23:33 -05:00
Oliver Kiddle
09c6acf7b2
44279: completion updates for Dragonfly 5.4, FreeBSD 12 and OpenBSD 6.5
2019-05-09 00:17:04 +02:00
Oliver Kiddle
ffacb17886
unposted: Add compset tests related to workers/44275
...
(Provided off-list by Oliver)
2019-05-08 16:38:12 -05:00
dana
c1a33575b4
44275: Fix compset -p/-s multibyte inconsistency and documentation
2019-05-08 16:35:08 -05:00
Oliver Kiddle
cd6fd2b0a3
44274: allow finer control of completion match soring with compadd's -o option
2019-05-07 23:24:49 +02:00
Gautam Iyer
5200637bda
gitlab !6 : Rudimentary rclone completion
2019-05-07 22:03:14 +02:00
Gautam Iyer
f7850406c9
gitlab !7 : Minor fixes to _lp and _gv completion
2019-05-07 00:06:39 +02:00
Doron Behar
6bf8c4720d
gitlab !8 : Support completion of installed lua rocks' versions
2019-05-06 23:48:00 +02:00
Doron Behar
cecaad96cb
gitlab !4 : Add pandoc completion
2019-05-06 23:39:10 +02:00
Doron Behar
2f420b8de3
gitlab !3 : Transmission remote completion
2019-05-06 23:31:18 +02:00
Aurélien Olivier
3908987b4a
github #33 : Add completion file for myrepos (mr)
2019-05-06 17:03:59 +02:00
Laurent Arnoud
191e05b108
github #35 : fix _arguments spec for gem push completion
2019-05-06 16:46:13 +02:00
dana
6f202377c7
44267: sort: Restore option to ignore backslashes
...
Fix regression introduced by workers/41242
2019-05-03 20:13:48 -05:00
Peter Stephenson
588bb77cb6
44271: Fix breaks propagated from until or return.
...
If the until or return test caused continuation but there was
a pending return, breaks didn't get cancelled causing enclosing
scope to skip commands.
2019-05-03 20:34:53 +01:00
dana
8ce9e20c49
44251: Completion: Fix various wording issues
2019-04-26 17:50:00 -05:00
dana
860bcdd561
44250: Completion: Fix use of -A and -S options to _arguments
2019-04-26 17:48:30 -05:00
dana
d56a43f802
44249: Completion: Handle zsh/files built-ins in _mv and _rmdir
2019-04-26 17:45:35 -05:00
dana
9208e321da
44234: _ssh: Update for OpenSSH 8.0
2019-04-26 17:43:19 -05:00
Peter Stephenson
ca456fbba3
44284: Mark SIGQUIT as ignore if ignored on entry to shell.
...
This prevents us from re-enabling it after a fork if it is being
ignored.
2019-04-25 20:29:54 +01:00
Peter Stephenson
d4972af12c
44254: Handle error case in zgetdir().
...
When retrieving path to current directory by looking for /,
ensure we have actually reached / by comparing inode.
If the current directory became invalid on some OSes including
Linux the parent directory is valid but is the same as the
current one.
2019-04-25 17:09:26 +01:00
Matthew Martin
39b0f5540c
unposted: _pick_variant: Use ${(P) ::= rather than eval
2019-04-22 22:04:24 -05:00
Matthew Martin
a4f4497207
44242: Completion: Use _pick_variant -b to detect builtins
2019-04-22 22:04:24 -05:00
dana
64d1373835
43288: fix line-broken prompts
...
Without re-breaking the case where a newline character lands in column 0.
2019-04-18 20:54:19 +02:00
dana
11ff9b3db9
unposted: NEWS: Document recent feature additions
...
Document new features and major changes introduced in 44100, 44135, 44155,
44198, 44200, &al.
2019-04-12 21:39:46 -05:00
dana
78fb8aaccf
44198: Add cd_silent option to suppress all cd output
2019-04-12 14:00:19 -05:00
Peter Stephenson
5e11082349
44168 (tweaked to remove change to errflag): Fix interrupt handling of zle -F.
...
If interrupted by irrelevant interrupt (EINTR only is set), don't set
the local error flag, just retry.
2019-04-10 20:56:53 +01:00
Eric Freese
5c165453ab
44214: <(...) substitutions shouldn't grab the terminal
2019-04-10 09:44:58 +01:00
Roman Perepelitsa
c551937280
44215: Maintain LASTWIDGET across reset-prompt.
...
This avoids side effects of asynchronous notifications.
2019-04-10 09:41:04 +01:00
Peter Stephenson
fe228c5984
44202: Rewrite to use memmove() for possibly overlapping copy
2019-04-10 09:31:41 +01:00
Jun-ichi Takimoto
ba74b16716
44210: add _findmnt and update _lsblk
2019-04-10 11:59:26 +09:00
Matthew Martin
6f35d6c0d0
44202 (tweaked): _normal: Add -P to reset precommands
2019-04-04 18:45:19 -05:00
Matthew Martin
7d84cde313
44201: _command_name: Check for external forcing precommand
2019-04-04 18:45:19 -05:00
Matthew Martin
5facfd3280
44200 (tweaked): Completion: Append to precommands in _normal
2019-04-04 18:45:19 -05:00
Matthew Martin
bb790c8f81
44199: _normal: Use zparseopts
2019-04-04 18:45:19 -05:00
dana
c749a06bc9
44158: Completion: Add _postgresql
...
Adjusted to fix minor copy/paste error in __pgsql_cfg_params
2019-04-01 14:44:42 -05:00
dana
683c2cc1ca
44160 (tweaked): Completion: Add _deb_files, match *.ddeb
...
Add new helper function for generating Debian package/control files, use it
where applicable
Adjusted only for minor white-space corruption in original patch
2019-03-25 16:19:00 -05:00
Jun-ichi Takimoto
52f3266bd0
44176: warn only if off_t is longer than long
2019-03-25 23:51:57 +09:00
Wesley Schwengle
5ca680c93c
44162 (tweaked): Avoid format-overflow warning in zftp.c
2019-03-25 23:01:43 +09:00
Wesley Schwengle
51d2e91a7e
44164: Avoid stringop-truncation warning
2019-03-25 20:42:54 +09:00
dana
fa92c6a1af
unposted: _chmod: Adjust _guard pattern
...
Per off-list feedback from Daniel, use a more context-specific pattern
2019-03-24 23:52:22 -05:00
dana
dc2d8d9c26
unposted: _chmod: Use _guard for mode operand
2019-03-22 17:22:23 -05:00
Clinton Bunch
ea8d3ab3e4
44156 (tweaked): zsh/system: Add note about potential flock side-effects
...
(Minor adjustments to wording and formatting)
2019-03-22 17:11:19 -05:00
Matthew Martin
5267bdc4ef
44153: rm: Accept -R as equivalent to -r
2019-03-21 22:04:55 -05:00
Matthew Martin
9b267ff1eb
44149: _mkdir, _stat: Use _pick_variant -b
2019-03-21 22:04:55 -05:00
Matthew Martin
8e4566e536
44144: _builtin: Append "builtin" to precommands
2019-03-21 22:04:55 -05:00
Matthew Martin
922cf49830
44155: _pick_variant: Update builtin check
2019-03-21 22:04:55 -05:00
Jun-ichi Takimoto
3e542bcd81
44147: add/update completions for procps-ng
...
New completions for free, pmap, slabtop, tload. Update _top.
2019-03-22 09:23:42 +09:00
dana
3e67e8347c
44111: _git: Use `git rev-list` for log messages
...
This side-steps issues related to `git log` respecting settings like
log.showSignature
2019-03-21 17:02:16 -05:00
Peter Stephenson
876dccfe73
Update doc from previous commit.
...
Make it clear it's commands whose names begin with a /
that aren't hashed. Obviously commands whose paths
begin with a / are OK, duh.
2019-03-19 14:22:34 +00:00
Charles Blake
084bf17c4b
44132: don't hash commands beginning with /
2019-03-19 14:09:50 +00:00
Peter Stephenson
73b29f079b
44142: Fix hist_reduce_spaces bug.
...
When there were as an unstripped comment on the line the
pointer for stripping spaces could be bogus. Don't do
any editing in that case.
2019-03-19 13:44:47 +00:00
Matthew Martin
6331772c5b
44135: Add chmod builtin
2019-03-18 22:17:54 -05:00
Jun-ichi Takimoto
947e26fe5a
44118: use libtirpc if RPC is not in glibc
2019-03-15 13:36:55 +09:00
Kamil Dudka
00e6ab70b8
44122: turn int into long to avoid overflow
2019-03-14 09:46:23 +00:00
dana
632023acc2
44100: zparseopts: Add -F option, completion, tests; improve documentation
...
* Enable zparseopts to perform basic usage validation (aborting on an
unrecognised option-like parameter)
* Officially document the resolution of ambiguous option specs
2019-03-12 19:03:56 -05:00
Jun-ichi Takimoto
36290f3e8e
44101: _vim: better support for nvim
2019-03-08 17:09:26 +09:00
dana
f21d54a381
unposted: _zftp: Use 'post' pattern matching
...
_zftp's use of `#compdef -p`, combined with inaccurate sub-command matching in
the function, was causing it to clobber the completion for other commands,
notably zf_mkdir from zsh/files. To avoid this, use -P instead
2019-03-06 18:06:07 -06:00
dana
a41f09f862
44099: Completion: Add _trash
2019-03-06 17:37:11 -06:00
Jun-ichi Takimoto
2055ee92e7
unposted: ztst.zsh: fix a typo
2019-03-01 14:57:55 +09:00
dana
3efacdbacf
44087: _getconf: Complete options, config variables on more systems
2019-02-27 19:31:55 -06:00
dana
d669a9a045
44090 (re: 44085): _remote_files: Don't set QUOTING_STYLE
...
The syntax was incompatible with some shells, and it's probably not a big
enough concern to work around it
2019-02-27 19:27:59 -06:00
dana
c01f10db5e
44085: _remote_files: Prevent ls/alias settings from mangling file listings
2019-02-26 14:31:00 -06:00
dana
29222ca186
44080: Completion: Fix several option-description typos
2019-02-26 01:21:29 -06:00
dana
2331785afb
unposted: _less: Fix typo
...
Reported here: https://www.reddit.com/r/zsh/comments/au98zv/_/
2019-02-24 14:37:34 -06:00
dana
d4f9899739
44077: completion: Fix GNU _pick_variant patterns, partially fix `getent -s`
2019-02-22 13:20:16 -06:00
dana
7930905f0c
44076: _column: Support Debian, add missing options, adjust wording
...
Tweaked per off-list discussion with Daniel: We agreed that it would be
best to side-step the wording disagreement between the BSD and
util-linux implementations by using our own description for -x, which
was borrowed from the one for `print -ca`
2019-02-22 13:14:16 -06:00
Yutian Li
0afe9dc02a
44067: Make history read safer on interrupt.
...
Record if a read was interrupted and if so process it in full
next time a read is needed.
2019-02-18 10:10:00 +00:00
Peter Stephenson
e25de2de74
c.f. 44062: Back off clearflag change to ZLE line init.
...
This causes problems with failed ZLE reads that printed a message
in the display area, in particular ignoreEOF warnings.
It appears it's not needed for the overall effect of the fixes in
zsh-workers/40302, commit 34656ec2
.
2019-02-14 11:41:19 +00:00
Doron Behar
109975b1b5
gitlab !5 : Add new abcde completion.
2019-02-09 10:08:20 +01:00
Hiroki Noda
a8c9daf7f1
github #31 : Add new demangle style, rust and dlang
2019-02-09 10:08:03 +01:00
dana
9bf7040174
unposted: Post-release version bump
2019-02-03 13:30:34 -06:00