Daniel Shahaf
67d882479b
40745 + 40753: Fix 'unset ZLE_RPROMPT_INDENT' not restoring the default behaviour.
...
To reproduce:
RPS1=foo
ZLE_RPROMPT_INDENT=42
unset ZLE_RPROMPT_INDENT
2017-03-08 10:04:44 +00:00
Peter Stephenson
f3f8537cfa
40760: Always tokenize unquoted - to Dash.
...
This fixes use of pattern match character ranges in unusual contexts.
Attempt to detect a tokenized - in cases where we don't care.
2017-03-07 10:43:58 +00:00
Sebastian Gniazdowski
23275fc8db
40726: add "zcurses resize" for sane terminal size change
2017-03-05 11:25:38 -08:00
Sebastian Gniazdowski
8522e996ec
40781: optimize array assignment, similar to 39995 for string assignment
2017-03-04 15:35:19 -08:00
Barton E. Schaefer
5e61eaf855
40654: exit cleanly from special POSIXBUILTINS in subshells
...
This patch overloads the zsh_subshell counter which is meant for $ZSH_SUBSHELL, but no one has suggested a working alternate test.
2017-03-04 15:25:17 -08:00
Sebastian Gniazdowski
c8005af310
40170: Fix up error resetting in curses module.
...
Update comment to remove confusion. The comment was based on
incorrecto expectations, and the problems referred to seem to be fixed.
2017-03-03 10:46:23 +00:00
Peter Stephenson
67c5d83df3
40702: new KEYS_QUEUED_COUNT ZLE variable
2017-03-03 10:18:46 +00:00
Jun-ichi Takimoto
0697c45ab3
40681: strftime builtin should return 1 if ztrftime() returns -1
2017-03-02 11:09:12 +09:00
Peter Stephenson
47c05f6b66
40622 with typos fixed: functions -Ms.
...
This adds the capability for mathematical functions based on shell
functions to have a string argument. Module functions have had
this for a long time.
2017-03-01 10:01:01 +00:00
Barton E. Schaefer
d00931de5c
40650: redo 40508 and 40626 with comments explaining what is actually going on
2017-02-26 12:03:56 -08:00
Daniel Shahaf
c7048cd88f
Revert 40626 which broke tests.
2017-02-26 06:11:19 +00:00
Barton E. Schaefer
4b8db48c6b
40640: the (A) parameter flag forces array result even if assignment syntax is not used
2017-02-25 15:56:50 -08:00
Daniel Shahaf
6c476c2211
40626: Make $options re-settable.
...
Follow-up to 40508.
Reported-by: James McGlashan
2017-02-25 08:05:11 +00:00
Barton E. Schaefer
12d950ba0c
40624: conditionally handle WIFCONTINUED to properly set SP_RUNNING process status
2017-02-23 16:19:07 -08:00
Jun-ichi Takimoto
8328b79286
40604: revert to the old method if getutent() is not available
2017-02-23 00:34:45 +09:00
Barton E. Schaefer
74fe4d0950
40598: paramsubst() should always return scalar when PREFORK_SINGLE was passed
2017-02-20 13:26:49 -08:00
Barton E. Schaefer
b3c186028e
40593: SHWORDSPLIT + unset IFS should cause default splitting of $@
2017-02-20 13:26:49 -08:00
Barton E. Schaefer
9f447578f0
40576 (tweaked): entersubsh(): unblock any signals that were blocked for trap handling
...
Also small improvement to loop that resets trap handlers
2017-02-20 13:26:49 -08:00
Sebastian Gniazdowski
e9ce001749
40558, 40562: General improvements to zsh/db/gdbm module
2017-02-17 09:22:02 +00:00
Barton E. Schaefer
63f086d167
40524: do not free a null array
2017-02-13 18:09:34 -08:00
Peter Stephenson
f5272bccd8
40536: Prepend directory to $fpath.
...
Used if parent function is autoloaded by absolute path so
as to find functions in the same suite without shell code
modification.
2017-02-13 16:32:50 +00:00
Daniel Shahaf
e9267adb49
40508: Make $functions re-settable.
2017-02-08 05:06:49 +00:00
Sebastian Gniazdowski
3be8e1bbdd
40507: Remove extraneous null creating GDBM records
2017-02-07 09:48:59 +00:00
Peter Stephenson
a32fb005d6
40486: Don't warn on creation of MATCH etc. in regex.
...
This because they are created implicitly rather than by explicit
user request, so the warning may not be useful.
2017-02-02 10:03:57 +00:00
Barton E. Schaefer
caddeca1ac
40483 (cf. Eric Freese: 40482): Remove zpty exit hook from forked processes
2017-02-01 17:11:48 -08:00
Daniel Shahaf
ad1b46578e
40460: WARN_NESTED_VAR: Don't warn when assigning to a slice of an existing array
2017-02-01 01:49:45 +00:00
Barton E. Schaefer
6557aa4710
40469: change strategy from 40453 to use patcompile(PAT_HEAPDUP) instead of signal queueing.
2017-01-30 08:03:47 -08:00
Barton E. Schaefer
e51c9c17af
40453: signal handler safety for callers of patcompile(PAT_STATIC), which is not re-entrant.
2017-01-29 08:30:14 -08:00
Barton E. Schaefer
0672c75359
40439: PAT_HEAPDUP definition just for clarity
2017-01-28 15:37:27 -08:00
Peter Stephenson
34f70c5dc0
40440: Add $functions_source hash to zsh/parameter.
...
This allows you to find out where a function was loaded from.
2017-01-28 19:33:27 +00:00
Peter Stephenson
8575e2ba57
40425: HAVE_* tests for getutxent etc.
...
Not yet 100% clear where the #if's go, depends on how various
systems implement the old or new formats.
2017-01-27 10:26:34 +00:00
Peter Stephenson
1633b2800d
40423: WARN_NESTED_VARS, conversion the other way
2017-01-26 20:07:51 +00:00
Peter Stephenson
80e47a9a5d
40422: More WARN_NESTED_VAR cases.
...
Converting type when using a calling scope was broken in the
original patch.
2017-01-26 19:58:17 +00:00
Peter Stephenson
b3637caa90
40413: WARN_NESTED_VAR subscripted variable fix.
...
No warning needed on paramter that's created temporarily to
help assignment.
2017-01-25 09:35:30 +00:00
Peter Stephenson
3e5badb0c9
40404: Only quote command in whence output with -v.
2017-01-24 11:12:41 +00:00
Peter Stephenson
c861b17bbf
40391: Add WARN_NESTED_VAR option and functions -W.
...
These are companions to WARN_CREATED_GLOBAL, warning when a variable
from an enclosing scope is altered.
2017-01-23 09:50:57 +00:00
Peter Stephenson
4d6097657c
40375: autoload with explicit path mustn't trash already loaded function.
...
Also remove unnecessary dupstring() on already duplicated string
when expanding =cmd.
2017-01-18 09:57:55 +00:00
Peter Stephenson
c2f1951ba3
40369: code should have been committed with 0a2d92f98
2017-01-17 10:05:32 +00:00
Peter Stephenson
f90a0447aa
40353 with tweaks to whence -v: extend directory cache use.
...
Now used for all autoloaded functions after load, including those
where the file was found along fpath, reducing duplication of
directory names.
2017-01-16 10:31:56 +00:00
Peter Stephenson
ebd7fdd932
40362: Fix setting of parameter values in compvalues
2017-01-15 17:15:04 +00:00
Peter Stephenson
00f16c8e68
unposted: one missing *name = NULL
2017-01-12 20:59:24 +00:00
Peter Stephenson
178e62dbfe
40342: Add directory name cache for autoload file paths.
...
This renders "autoload /blah/blah/*" as efficient as use of
fpath.
2017-01-12 20:56:20 +00:00
Peter Stephenson
33799ae2b0
40335: More care with autoload function path.
...
If doing "autoload -X", the path present might actually be location
of file containing the function with the autoload -X. Add
an explicit flag to say it's a directory for autoload.
2017-01-12 13:54:29 +00:00
Jens Elkner
d3cf8816dc
40333: Fix the watch interface for utmpx
2017-01-12 09:58:51 +00:00
Oliver Kiddle
b6082cd1e2
40321: _arguments option groups
2017-01-11 20:50:02 +01:00
Peter Stephenson
47b7f2adef
unposted: more care with shell function filename.
...
When updating shfunc structure to change filename we should be
careful to free whatever's there already, we may now be the
directory in which to find the function definition. After loading
the field contains the full name of the file.
2017-01-11 12:11:22 +00:00
Peter Stephenson
f26d1ba6b0
Add features associated with autoloading a function using an absolute
...
path.
-d defaults to normal fpath
-r remembers the path without actually loading. May be combined with -d.
-R does the same but it's an error if not found
-X can now take a directory path: this is used to output not yet loaded
functions that have an associated path.
2017-01-11 11:26:13 +00:00
Peter Stephenson
34656ec2f0
40305: fix some problems redisplaying command line after interrupt.
...
Back off previous fix as this only covered some subset of problems.
Remaining problems happend after reset-prompt in TRAPINT.
One was in complist and is fixed by not attempting to list after
an error or interrupt.
The other was owing to not resetting clearflag when ZLE
was re-entered.
2017-01-10 19:18:52 +00:00
Peter Stephenson
bb218704d2
40306 with doc tweaks: Change behaviour expanding alias in () function definition.
...
Now an error unless the () is part of the same error as the name.
Add ALIAS_FUNC_DEF option to allow it again.
2017-01-10 19:14:26 +00:00
Peter Stephenson
48cadf48ff
40285: Be more careful with pattern allocation in history isearch.
...
If there are ZLE hooks to be called, they may use patterns, in
which case it's not safe to allocate the isearch pattern in the
static buffer.
2017-01-06 17:42:13 +00:00