Commit graph

9801 commits

Author SHA1 Message Date
Peter Stephenson 921b39ac6b 39949: Special case for "-" in directory names.
It can be sh-tokenized to Dash to allow for appearing in ranges
after substitution, so needs to be turned back to "-" in that case.
2016-11-15 18:01:32 +00:00
Peter Stephenson e9dbfa8046 39947: Additional test for array subscripts.
This checks out-of-range multiple subscripts with and without
the (@) flag.
2016-11-15 16:01:32 +00:00
Jun-ichi Takimoto 3fd50d06a1 39937: fix a problem introduced by 39886.
$a[i,j] should become an empty array if i>j.
2016-11-15 00:17:35 +09:00
Peter Stephenson 99acd1e7f4 39906: More multibyte optimisations for US-ASCII.
This treats characters 0 to 0x7f as single byte US-ASCII along
the lines we already do in other places in the code.
2016-11-14 10:12:04 +00:00
Barton E. Schaefer 56e3d23b98 unposted: comment in zlecallhook() points to redrawhook() just in case 2016-11-13 18:15:23 -08:00
Barton E. Schaefer cbb9ca3dfb 39934: if a widget execution fails, try to execute a corresponding immortal widget instead. 2016-11-13 15:52:09 -08:00
Barton E. Schaefer 7b8f638713 39933: more of zlecallhook() in redrawhook()
add commentary on some of the differences
2016-11-13 11:04:25 -08:00
Barton E. Schaefer 33052104e1 39929: clarify execute{,-last}-named-cmd 2016-11-13 11:00:16 -08:00
Barton E. Schaefer 9a09f97b60 unposted: Addenda to list of module hooks 2016-11-12 23:39:14 -08:00
Barton E. Schaefer 20de06dfbc unposted: add list of standard module hooks with corresponding macro names 2016-11-12 23:17:36 -08:00
Paul Seyfert 2ba985fe5b 39920: extend yum completion
adding the following yum commands:
 * update-to (just what update expands)
 * upgrade-to (just what update expands)
 * history (the actual tricky one)
 * help (printing the available commands)
 * load-transaction (_files)
 * load-ts (_files)
 * check (just what the man page suggested)
 * reinstall (just what erase does - suggest installed packages)
 * downgrade (just what erase does - suggest installed packages)
 * repolist (just what the man page suggested)
 * distribution-synchronization (just what erase does - suggest installed packages)
 * distro-sync (just what erase does - suggest installed packages)

A few history commands don't get expanded.
Taken from the man page of yum 3.2.29.
Reindented file.
2016-11-12 02:40:49 +01:00
Barton E. Schaefer d676d1bf4b 39893: use arrdup_max() to show explicitly the difference in two code branches
no functional change
2016-11-10 21:01:32 -08:00
Daniel Shahaf c238057ccc 39874/0002 plus size=0 handling: zshcalloc: Remove code duplication. No functional change. 2016-11-11 04:37:59 +00:00
Daniel Shahaf 7139b73724 39874/0001: setarrvalue: Remove needless initialization. 2016-11-11 04:35:41 +00:00
Peter Stephenson 5f1700755f 39901: No EXIT trap on LHS of pipeline.
There is a special case if the LHS is a shell construct.
Add unit tests for both cases.
2016-11-10 10:37:27 +00:00
Oliver Kiddle 370b278565 39890: typo corrections in completion functions 2016-11-09 16:55:14 +01:00
Oliver Kiddle 496626ddb8 39888: update tmux completion for tmux 2.3 2016-11-09 16:55:14 +01:00
Oliver Kiddle 488d73c07d 39884: fix history-beginning-search-menu for history lines containing a pipe character 2016-11-09 16:55:13 +01:00
Barton E. Schaefer dae3116026 39882: mention ${name:/pattern/replacement} in the itemized synopsis with the related forms; clarify doc. 2016-11-09 07:50:06 -08:00
Peter Stephenson 65ea1a033b 39887: no need to conditionalise assignment of strlen() 2016-11-09 13:45:11 +00:00
Peter Stephenson a1633e09a7 39886 based on 39877: Optimise arrdup to arrdup_max.
Only duplicate as much of the array as is needed.
2016-11-09 11:54:57 +00:00
Sebastian Gniazdowski 49407686b4 39875: add dupstring_glen to avoid redundant strlen calls 2016-11-09 10:32:48 +00:00
Daniel Shahaf d8786da0cd 39853: _subversion: Accept long options in the '--foo=bar' syntax. 2016-11-09 04:06:23 +00:00
Sebastian Gniazdowski 06e4ec853a 39871: cut down number of strlen()s in getstrvalue() 2016-11-08 15:14:08 +00:00
Peter Stephenson a57977d01a 39870: ensure exit trap can always run 2016-11-08 13:02:57 +00:00
Jun-ichi Takimoto dfb2f3f3d2 39857: add support for darwin, with improvements on linux etc. 2016-11-08 21:49:33 +09:00
Peter Stephenson 1683371fa5 unposted: follow up to 39867: don't need test against zero 2016-11-08 10:51:03 +00:00
Sebastian Gniazdowski 68a576bc55 39869: can transfer ownership of core of array when assigning 2016-11-08 10:49:13 +00:00
Peter Stephenson 39521515c3 39867, tweaked: Use cast to unsigned char to test character.
We want the unsigned variant to be <= 0x7f.  Use the normal STOUC()
macro and turn this into a single test.
2016-11-08 10:09:26 +00:00
Peter Stephenson 5411cdf378 39856: module completion improvements.
Follow symbolic links when finding.

Use _multi_parts for paths when completing modules.
2016-11-07 14:49:00 +00:00
Jun-ichi Takimoto 0921a3537a 39855: new completion for jot command 2016-11-07 19:29:52 +09:00
Peter Stephenson 33b3489092 zsh-users/22083: attempt to explain what a word is in parameter substitution. 2016-11-07 10:04:14 +00:00
Daniel Shahaf bb28726fa5 39840: _cpio: Declare variable's type correctly. 2016-11-07 05:21:19 +00:00
Daniel Shahaf 7e406125cd unposted: ChangeLog typo 2016-11-07 05:19:35 +00:00
Jun-ichi Takimoto f912e83505 39728: define _GNU_SOURCE on Cygwin 2016-11-07 11:36:17 +09:00
Frank Terbeck 06bd2b1c85 39849: _tmux: Remove set-remain-on exit
This was removed recently, since it was superseded by hooks.
2016-11-07 00:04:07 +01:00
Frank Terbeck c2649189cb 39848: _tmux: Update options to latest tmux 2016-11-06 23:18:28 +01:00
Frank Terbeck 02fe884a11 39847: Update helper function name pattern
In 580698bc71, Oliver updated a whole bunch of options in a number of
completions. While at it, he also changed a bit of coding style, to
better adhere to Etc/zsh-development-guide — among those changes is to
convert "function foobar() {" function definitions to "foobar() {".

This broke Util/check-tmux-state so that it couldn't detect any
supported tmux sub-commands within _tmux anymore. This updates the
regular expression that is used in the script to match and list these
function definitions.
2016-11-06 23:18:28 +01:00
Barton E. Schaefer c282abc6bd Thomas Bereknyei, Mic92: 39831: find "getent" by the usual command search, not just /usr/bin/
Also tweak the replacement getent to handle /etc/hosts format.
2016-11-06 00:00:38 -07:00
Barton E. Schaefer dee0bce7b4 unposted: tests for 39839, 39844 2016-11-05 21:37:23 -07:00
Barton E. Schaefer ff36590910 39844: fix "while" condition as per 39839 (commit 2c56c7e5) 2016-11-05 18:23:04 -07:00
Barton E. Schaefer 2c56c7e5e8 39839: fix "return" from "if" condition 2016-11-05 13:54:16 -07:00
Barton E. Schaefer d91ffb1db2 39838: another missing unqueue_signals() 2016-11-05 13:49:07 -07:00
Oliver Kiddle 58ce2f119a 39829: when compstate[insert] is emptied by the completion function and AUTO_MENU is set, start menu completion on the second tab press rather than the third 2016-11-05 00:36:29 +01:00
Oliver Kiddle 5c28031ea6 39834: when print used with -v and -l, include a final newline
Also complete print -S option and make further use of the
new printf to an array feature in other completion functions.
2016-11-05 00:31:01 +01:00
Oliver Kiddle 4b41e33cbc 39389: when printf -v is used with an array use separate elements each time the format is reused 2016-11-05 00:27:47 +01:00
Daniel Shahaf fe023d8bac users/22080: bracketed-paste: Third time's a charm.
vi-set-buffer: Eliminate the sole use of the term "register".
2016-11-04 15:50:13 +00:00
Peter Stephenson 9c68ef083b 39825: optimise mb_metastrlenend() for 7-bit character.
As the shell relies intimately on US-ASCII as a subset we can
skip the multibyte functions if we are dealing with a complete
7-bit character.
2016-11-04 09:56:51 +00:00
Oliver Kiddle 6ea4e708ba 39818: _awk: add nawk to the list of commands 2016-11-04 10:02:33 +09:00
Barton E. Schaefer 22e1139328 39824: test case for 39811 (commit ae4c035c) 2016-11-03 12:03:24 -07:00