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

3311 commits

Author SHA1 Message Date
Jun-ichi Takimoto
ca3bc0d95d 37838: use UNUSED() consistently 2016-01-30 00:26:23 +09:00
Daniel Shahaf
bced1beb8c 37700: Teach ${(z)} the 'repeat WORD SUBLIST' syntax. 2016-01-29 09:14:53 +00:00
Barton E. Schaefer
0b37b5149d 37804 (plus 37816): first word following "repeat" should be evaluated as math 2016-01-27 22:10:38 -08:00
Barton E. Schaefer
d18476ce5c 37819: zshaddhistory hook works for any history file write, even upon keyboard interrupt 2016-01-27 22:10:38 -08:00
Barton E. Schaefer
572f8c85ab 37810: repair handling of backslashes and of names starting with "+"/":"/"=" in zparseopts option specs 2016-01-27 22:10:38 -08:00
Barton E. Schaefer
8ddcdad0c1 37802: Clarify zparseopts documention. zparseopts "X::" specifier should also look for the optional argument in the word after "-X". 2016-01-27 22:10:38 -08:00
Barton E. Schaefer
10c5f95f52 37785: skip autoload parameters for "typeset -p" 2016-01-26 18:17:24 -08:00
Kamil Dudka
69c86cd2c3 37780: Care printing error if nothing to print. 2016-01-25 17:15:23 +00:00
Jun T
1d98f77a9b Jun T.: 37759: save more function pointers from realparamtab when hacking in their replacements
Restoring from the original external symbols fails for some dynamic link schemes (e.g. 64bit Cygwin).
2016-01-25 08:28:30 -08:00
Peter Stephenson
7c59c953f2 37765: Use FS_FUNC on fucstack to find autoload -X target.
This is better than scriptname which can be updated due to e.g.
intervening "eval".
2016-01-25 16:23:16 +00:00
Peter Stephenson
be32864e6f 37776: Set errflag before calls to zwarning().
This avoids an attempt to call zerr() or zerrnam() recusrively.
2016-01-25 15:43:06 +00:00
Peter Stephenson
1aec003155 37722: test builtin should return status 2 on syntax error 2016-01-21 16:30:21 +00:00
Peter Stephenson
1c41f98aab 37705: don't turn - to Dash after start of brace parameter 2016-01-20 11:22:09 +00:00
Barton E. Schaefer
cfa8d8bcad 37682: when SH_GLOB is set, do not parse bare parentheses in arguments as a pattern grouping. 2016-01-19 19:57:59 -08:00
Peter Stephenson
c2b6bd51f9 37693: turn Dash into '-' in glob qualifiers 2016-01-19 17:38:59 +00:00
Peter Stephenson
ad16356e19 37689: ! and ^ need to be tokenised in character sets 2016-01-19 17:24:12 +00:00
Peter Stephenson
8eb9070d67 37678: Now possible to quote "-" in pattern range 2016-01-19 09:55:46 +00:00
Peter Stephenson
0194b4ab1d 37646: Return non-zero status from typeset assigning readonly 2016-01-15 15:53:39 +00:00
Peter Stephenson
1d8b528522 37643: Reset interrupt on key input in menu selection.
We don't need to propagate the interrupt further as the interrupt
causes the key to be empty, which will exit the widget.  We
need to reset the condition as zrefresh() is now more sensitive
to errors since 36416 / 32f5d3d8.
2016-01-15 12:49:42 +00:00
Peter Stephenson
da71967273 37512: overeager WARN_CREATE_GLOBAL with strftime 2016-01-15 12:16:40 +00:00
Daniel Shahaf
69379369da unposted: Extend docstring of callhookfunc(). 2016-01-15 06:30:12 +00:00
Daniel Shahaf
5cf6ae0056 37590: Invoke zle-line-pre-redraw during isearch. 2016-01-14 00:04:12 +00:00
Daniel Shahaf
a8a00be442 37591: 'alias -L': skip with a warning aliases with '=' in their LHS 2016-01-13 01:25:46 +00:00
Daniel Shahaf
5731581c4c 37551: Include the builtin's name in a "bad option" error message.
Example: «zsh -fc 'zle -z'» now prepends "zle:" to the error message.
2016-01-10 20:22:37 +00:00
Barton E. Schaefer
5eae5b58b1 Jun T.: 37515: multibyte handling as per 35448. 2016-01-08 20:42:00 -08:00
Barton E. Schaefer
424b417063 unposted: Src/builtin.c: refine READ_MSTREAM to avoid unsequenced evaluation 2016-01-08 20:36:50 -08:00
Barton E. Schaefer
fac7466d11 37513: fix typos; improve error cleanup and correct for signed/unsigned compiler warning 2016-01-06 14:05:02 -08:00
Barton E. Schaefer
a940d25b18 37504: refactor code using/simulating memstream to capture output for "print -v" 2016-01-05 12:50:12 -08:00
Barton E. Schaefer
bc703e4ad1 37503: detect incompatible "print" options, fix metafication and possible memory leak, miscellaneous cosmetics 2016-01-04 22:50:48 -08:00
Jun T
ead199291f 37501 (+ revise test): correct byte counts when simulating memstream via temp file 2016-01-04 22:29:37 -08:00
Peter Stephenson
524f802610 37489, tweaked: with POSIX_IDENTIFIERS create math var as scalar 2016-01-03 18:57:10 +00:00
Barton E. Schaefer
63c6d1746c 37497: handle NUL bytes in "printf -v". 2016-01-02 13:57:35 -08:00
Barton E. Schaefer
03adf52414 37493: readonly + POSIX_BUILTINS == typeset -gr 2016-01-02 12:40:31 -08:00
Barton E. Schaefer
b4643fce2d 37483: save and possibly restore cshnullglob failure state around each evaluation of an (e:...:) glob qualifier. 2016-01-01 19:20:14 -08:00
Barton E. Schaefer
5c17f9ab3f 37473: check for cshnullglob in command position. 2016-01-01 13:01:16 -08:00
Barton E. Schaefer
62706b1abc 37469: do NOT allow semicolons in place of line breaks in conditionals 2015-12-31 14:16:56 -08:00
Barton E. Schaefer
6e10224f1e unposted: enable WARN_CREATE_GLOBAL for print -v 2015-12-31 12:44:25 -08:00
Barton E. Schaefer
0504dafa6e 37468: allow line breaks in more places in [[ ... ]] 2015-12-31 12:41:50 -08:00
Barton E. Schaefer
15b73ea99b 37467: add "print -v var" / "printf -v var" 2015-12-31 12:38:10 -08:00
Daniel Shahaf
fcd13cdaae 37456: Have zle_highlight=(none) disable paste highlighting
Before this change, zle_highlight=(paste:none) worked,
but zle_highlight=(none) didn't.
2015-12-31 01:16:06 +00:00
Barton E. Schaefer
fc344465f2 37435 (+ fix typo): allow execution of empty files as "sh" scripts 2015-12-25 00:31:32 -08:00
Barton E. Schaefer
a554c7403a 37434: POSIXBUILTINS "command" should prevent shell exit on errors from special builtins 2015-12-25 00:26:26 -08:00
Barton E. Schaefer
7611e78ad1 unposted (cf. 37387): emulate turns off WARN_CREATE_GLOBAL 2015-12-19 16:57:09 -08:00
Mikael Magnusson
c3ea3ffa73 36650: Add zle-line-pre-redraw hook for highlighting 2015-12-19 13:21:12 +01:00
Peter Stephenson
0bd903abca 37405: Fix self-insert binding for multibyte sequences.
This makes it work even if the self-insert applies to a sequence longer
than an initial byte, including the case of a complete binding to a full
character sequence.
2015-12-15 12:41:20 +00:00
Peter Stephenson
a5233fd01e 37378: New bindkey tests.
Also fix Meta bug on pattern match in zpty -r.
2015-12-10 17:51:41 +00:00
Peter Stephenson
67877f6055 37364: "test" and "[" handling of parentheses.
If three arguments, need to prefer binary operators if possible.

Need to look for full string for parentheses.
2015-12-09 16:40:08 +00:00
Peter Stephenson
7f5b2f5709 37348: Tests and fix for ${(q+)...}.
Needs dupstring() for empty string case.
2015-12-08 15:08:24 +00:00
Peter Stephenson
59de978c7e users/21071: Fix binding of multibyte sequences.
There was a problem if the first byte was already bound to
self-insert.
2015-12-08 10:56:17 +00:00
Peter Stephenson
f5b8efa7e0 37344: restore old printable quoting, add ${(q+)...}.
The \C- form is only used inside quotedzputs().

${(q+)...} outputs a quotedzputs() representation.
2015-12-07 21:49:07 +00:00