1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-04 08:30:54 +02:00
Commit graph

3299 commits

Author SHA1 Message Date
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
Peter Stephenson
9fb30cf572 37331: Use a single chracter to represent an MB_INCOMPLETE.
This is as it is likely to appear as a single character in output
even if it has multiple octets.
2015-12-07 18:54:03 +00:00
Peter Stephenson
0c2d823a79 37337: Delay freeing widget until not in use. 2015-12-07 14:32:52 +00:00
Peter Stephenson
87670fb011 37326: comment only: multibyte string lenght/width counting 2015-12-06 16:39:57 +00:00
Peter Stephenson
5a76a5d34e 37314: upgrade quotedzputs() for non-printable output.
Use nicechar with $'..' quoting; upgrade nicechar() etc. to
use suitable output.
2015-12-06 15:33:02 +00:00
Peter Stephenson
16684952fb 37305: typeset -p can now output arrays on one line 2015-12-04 15:39:53 +00:00
Peter Stephenson
e40a14c5e4 37202: suppress WARN_CREATE_GLOBAL warnings after a fork 2015-12-04 10:44:33 +00:00
Peter Stephenson
04479a56e0 unposted: fix init_io() calls in previous change 2015-12-04 09:42:35 +00:00
Peter Stephenson
fc00e3a6b7 37294: Add ZSH_EXECUTION_STRING.
This shows the argument to shell option -c.
2015-12-04 09:28:26 +00:00
Daniel Shahaf
5ecf332e84 37253: Constify two local variables. 2015-12-03 23:53:03 +00:00
Daniel Shahaf
7154b8314d 37296: Avoid needless calloc(). 2015-12-03 23:47:24 +00:00
Daniel Shahaf
4202c90b6d 37254: No functional change: change code layout in preparation for 37253. 2015-11-30 03:42:46 +00:00
Daniel Shahaf
503fa5cd9e 37250: No functional change: rename local variables. 2015-11-30 03:42:45 +00:00