Daniel Shahaf
c7048cd88f
Revert 40626 which broke tests.
2017-02-26 06:11:19 +00: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
Daniel Shahaf
e9267adb49
40508: Make $functions re-settable.
2017-02-08 05:06:49 +00: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
dcffad8326
38586: Metafication problem with $functions
...
If treated as a complete associative array or scanned (retrieving
individual values was not affected), it incorrectly unmetafied
the value so multibyte characters got confused.
Add test.
2016-06-03 10:28:52 +01:00
Jun-ichi Takimoto
ca3bc0d95d
37838: use UNUSED() consistently
2016-01-30 00:26:23 +09:00
Peter Stephenson
cba1d41ffc
2037: ${functions[foo]} shouldn't be unmetafied.
...
When passed back from the parameter-specific "get" handler it's
still in the shell's internals, so remains metafied.
This caused mayhem with UTF-8 characters in function bodies.
2015-05-29 12:17:18 +01:00
Peter Stephenson
0557c226fc
33294: $functions[func_with_redir] plus extra tests
2014-09-30 12:58:52 +01:00
Peter Stephenson
08e5191ff0
users/19097: remove $functypetrace in favour of ref to $zsheval_context
2014-09-18 19:09:52 +01:00
Peter Stephenson
246404a44d
Add $functypestack special parameter in zsh/parameter
2014-09-12 20:35:16 +01:00
Barton E. Schaefer
f6429189a8
32903: new empty (unset) elements in the special parameter hash tables are special themselves
2014-07-24 08:16:29 -07:00
Mikael Magnusson
fa03332635
31805: Add $patchars and $dis_patchars to zsh/parameter module
2013-10-11 14:57:57 +02:00
Peter Stephenson
4b86cc48f7
30726: make shell options passed to emulate stick along with the emulation
2012-10-11 20:14:01 +00:00
Peter Stephenson
4e2cdd7956
30722: fix some cases where emulations or options were not propagated properly
...
from the emulate command
2012-10-07 19:46:46 +00:00
Peter Stephenson
86f8e8de69
30307 plus tweak suggsted by Wayne: use %lld for zlong when long long
2012-03-05 10:06:28 +00:00
Peter Stephenson
94225e07fc
28638: add $usergroups parameter
2011-01-19 12:42:53 +00:00
Peter Stephenson
0a5702457b
28510: add (z+c+) and (z+C+) parameter flags
2010-12-12 22:44:50 +00:00
Peter Stephenson
c7d8b0dfb8
26546, 26556: sticky emulation for functions defined in emulate ... -c ...
...
environments, plus documentation
2009-02-11 20:42:15 +00:00
Peter Stephenson
59dd1491c6
users/13295, tweaked: dont reset line numbers when parsing strings, sometimes
2008-09-29 08:46:21 +00:00
Peter Stephenson
d37f9672cb
25651: make getpermtext() output indentation more logical
2008-09-11 17:14:38 +00:00
Peter Stephenson
0cba5ef62a
25595: fix line numbers with EVAL_LINENO,
...
try to fix oddities with funcstack and sourced files,
simplify use of caller element of funcstack
2008-09-03 09:08:18 +00:00
Peter Stephenson
a5a1296fa0
25448: add $funcfiletrace to show absolute line number for caller
2008-08-13 21:02:02 +00:00
Peter Stephenson
2853ca830a
25247 with further modifications: add $funcsourcetrace
2008-08-11 19:22:54 +00:00
Peter Stephenson
f5a6b2a8c9
users/11818: allow non-numeric keys for job status parameters
2007-09-05 16:16:15 +00:00
Peter Stephenson
1b52f47cf2
23665: autoloading of module features and related tweaks
2007-07-06 21:52:38 +00:00
Peter Stephenson
4d52b7ebe6
23670: rationalise some linked list functions
2007-06-27 13:56:10 +00:00
Peter Stephenson
abae4fe16e
23562: add KSH_ZERO_SUBSCRIPT option and leave off by default
2007-06-18 13:25:03 +00:00
Peter Stephenson
b0c5f09169
see 23479: add initial features support for modules
2007-05-28 22:57:39 +00:00
Peter Stephenson
55ca3b0d16
23446: fix typo producing wrong values for alias parameters
2007-05-21 11:00:50 +00:00
Clint Adams
1554b81053
operator precedence fix
2006-09-18 03:40:40 +00:00
Clint Adams
a7c0640c0a
22728: $functrace parameter for function backtraces.
2006-09-17 19:28:45 +00:00
Peter Stephenson
dd5602f59b
22474: use variable argument lists to improve error message handling
2006-05-30 22:35:03 +00:00
Wayne Davison
4cb83571c4
Changed some structures to avoid gcc's type-punned warnings.
2006-03-07 21:30:36 +00:00
Peter Stephenson
43d480057b
20959: fix crash unloading zsh/parameter and test the fix
2005-03-10 17:55:37 +00:00
Peter Stephenson
05b06b1c08
fix autoloaded trap bug; rejig use of trapfuncs
...
(now traplists); improve trap tests
2005-02-06 20:36:09 +00:00
Wayne Davison
2fb65d215f
Fixed compiler warning about a missing initializer.
2005-01-21 11:16:34 +00:00
Peter Stephenson
77166e259e
20695: Fix Cygwin problem with initialising from pointer to imported variable
2005-01-12 12:18:58 +00:00
Peter Stephenson
69b4b8bdde
20605: Use separate structure with get/set/unset methods fro parameters.
...
Separate justification width of parameters from base/precision.
2004-12-07 16:54:58 +00:00
Wayne Davison
aee4661e96
We can't use "%d" on a histent number (which is a zlong these days).
...
Changed the sprintf() to convbase().
2004-10-01 18:48:27 +00:00
Wayne Davison
fb0937a69e
Marked unused parameters with the new UNUSED() macro.
2004-06-02 22:14:25 +00:00
Peter Stephenson
a6a63a147e
19242: Make job table dynamically reallocatable.
2003-11-13 14:34:33 +00:00
Peter Stephenson
815bc92148
a la 19209: zcalloc -> zshcalloc
2003-10-29 19:17:30 +00:00
Peter Stephenson
b26ec00df5
19044: typo in setting $saliases elements
2003-09-08 11:17:20 +00:00
Peter Stephenson
3ffb3ad2f2
19014: add alias -s suf=handler
2003-09-03 10:15:32 +00:00
Peter Stephenson
ef8d5c7214
18880: Don't return unset parameters in $parameters
2003-07-22 13:12:09 +00:00
Peter Stephenson
74c90c0ada
18325: options on by default weren't printed correctly by zsh/parameter
2003-03-07 12:31:00 +00:00
Sven Wischnowsky
c0ea4d62c8
handle possible NULL pointer returned from bufferwords() (15717)
2001-08-28 08:41:51 +00:00
Peter Stephenson
003ec8c7e8
15327: always use local LINENOs in parse_string().
2001-07-09 16:05:13 +00:00
Sven Wischnowsky
1b2d095217
fix two memory leaks (at least I hope they are fixed) and some out-of-bound array accesses, plus some defensive programming for heap allocated param structs (14605)
2001-05-31 09:43:59 +00:00
Sven Wischnowsky
da9b5bb81a
show current/previous job in $jobstates (3503)
2000-11-02 08:12:44 +00:00