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

11170 commits

Author SHA1 Message Date
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
Teddy Heinen
5cf1d6dfd1 github #40: Teddy Heinen: adjust zfs completion to use acltype on linux instead of aclmode 2019-10-28 23:15:37 +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
romkatv
6c6200520a unposted: fix indentation (whitespace-only change)
Indentatin in moveto was broken by 3eea35d0 (my bad), making it
difficult to read. This commit reverts it to what it used ot be.
While at it, fix indentation in a few other places in the same
file.
2019-10-28 12:00:55 +01: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
romkatv
243e46998e bug fix: infinite loop when tty disappears
When TTY disappears and there is at least one fd watcher, raw_getbyte() can
enter an infinite loop where it keeps calling poll() over and over again.

To reproduce, open a terminal, start zsh and type this:

  rm -f /tmp/fifo
  mkfifo /tmp/fifo
  exec 3<>/tmp/fifo
  do-nothing() {}
  zle -F 3 do-nothing

Then make TTY disappear. For example, kill the parent with `kill -9 $PPID`
and close the terminal window if it's still there. Observe that zsh is
consiming 100% CPU. Note that do-nothing() never gets called.

This patch makes the poll() loop in raw_getbyte() terminate when TTY is
signalling POLLHUP. This makes the behavior consistent with the case where
TTY disappears while no fd watchers are installed.
2019-10-04 14:18:18 +02:00
Daniel Shahaf
dca638e301 44797: _git-config: Complete unknown options from 'git help -c'. 2019-10-02 17:11:11 +00:00
Oliver Kiddle
0cc98dfe05 44800: complete tmux formats 2019-10-01 23:15:21 +02: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