1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-17 22:31:12 +01:00
Commit graph

521 commits

Author SHA1 Message Date
Sebastian Gniazdowski
6116fdb277 41375: GDBM interface bug fixes 2017-07-03 10:02:01 +01:00
Phil Pennock
825f84c77e 41308 (tweaked): behaviour of PCRE with NUL bytes 2017-06-22 09:24:33 +01:00
Peter Stephenson
d5c22d356b 41244: Add zmodload -s option.
Doesn't complain if module is unavailable, but prints more
obscure errors.

Use existing low-level silent flag by passing through
intermediate module loading hierarchy.
2017-06-12 10:10:23 +01:00
Sebastian Gniazdowski
284b5aaeb0 41151: propagate flags when creating new parameter 2017-05-28 13:17:26 -07:00
Sebastian Gniazdowski
ca0607c4c2 41153: finish module setup only after all error conditions have been checked 2017-05-28 13:15:06 -07:00
Sebastian Gniazdowski
62c416915b 41146: careul in GDBM freeing strings with embedded nulls 2017-05-24 15:55:42 +01:00
Sebastian Gniazdowski
135075e48c 40898: fix GDBM error handling 2017-05-24 15:53:42 +01:00
Stephane Chazelas
99fff8f15c 41142: Ensure close-on-exec is passed to moved file descriptor 2017-05-23 17:03:31 +01:00
Jun-ichi Takimoto
4d7b34c5f3 unposted: silence warnings on Cygwin
On Cygwin, h_name in struct hostent is 'const char*'
2017-03-10 18:41:25 +09:00
Sebastian Gniazdowski
23275fc8db 40726: add "zcurses resize" for sane terminal size change 2017-03-05 11:25:38 -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
Jun-ichi Takimoto
0697c45ab3 40681: strftime builtin should return 1 if ztrftime() returns -1 2017-03-02 11:09:12 +09: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
Daniel Shahaf
6c476c2211 40626: Make $options re-settable.
Follow-up to 40508.

Reported-by: James McGlashan
2017-02-25 08:05:11 +00: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
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
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
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
Jun-ichi Takimoto
f912e83505 39728: define _GNU_SOURCE on Cygwin 2016-11-07 11:36:17 +09:00
Barton E. Schaefer
26b4508ee3 39268: "zsystem flock -t 0 ..." tries only once to flock and immediately returns success or failure 2016-09-11 17:22:02 -07:00
Peter Stephenson
8d18872817 39217: fix error name generation with GCC.
Adapt the same trick as in zsh.mdd to ensure we don't get
preprocessor lines in the output.
2016-09-07 11:50:00 +01:00
Jun-ichi Takimoto
4b2810ab2d 39064: use scalbn() instead of scalb() (mathfunc.c) 2016-08-20 23:52:01 +09:00
Daniel Shahaf
f9b1703511 38971: Start using the new arrlen_ge() / arrlen_le() helpers. 2016-08-01 08:01:29 +00:00
Jun-ichi Takimoto
fff0080400 38862: strptime(3) requires _XOPEN_SOURCE on Cygwin 2016-07-19 14:54:59 +09: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
Sebastian Gniazdowski
fea013b8e8 38356: allow integers as curses colours 2016-04-29 14:01:06 +01:00
Sebastian Gniazdowski
7fc0c2d57d 39354: zcurses fix for colour management
Alter internal return 	code so as not to mask curses error code.
2016-04-29 10:17:44 +01:00
Barton E. Schaefer
222dea055c Mikael Berthe: 38307: PCRE segfault when parenthesized group matches nothing
unposted: regression test for 38307
2016-04-23 14:20:16 -07:00
Jun-ichi Takimoto
a4020e10a3 37868: add 'static' to file local variables 2016-02-03 01:25:33 +09:00
Jun-ichi Takimoto
ca3bc0d95d 37838: use UNUSED() consistently 2016-01-30 00:26:23 +09: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
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
Barton E. Schaefer
5eae5b58b1 Jun T.: 37515: multibyte handling as per 35448. 2016-01-08 20:42:00 -08: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
04479a56e0 unposted: fix init_io() calls in previous change 2015-12-04 09:42:35 +00:00
Barton E. Schaefer
3d962aacd5 37229: non-local assignment to a parameter name whose outermost declaration is private, is an error rather than a silent no-op.
Also fix %prep sed expression for Solaris.
2015-11-26 12:43:08 -08:00
Barton E. Schaefer
4e90e27036 37208: assignment in a nested scope should not change private parameters in the outer scope from unset to set
Bug remains that the attempt does not generate a warning
2015-11-23 21:43:14 -08:00
Barton E. Schaefer
d3d5325d27 37081: new module zsh/param/private for private-scoped parameters in functions 2015-11-08 16:19:37 -08:00
Peter Stephenson
0628802baf 37014: Improved internal parameter setting.
Enhance WARNCREATEGLOBAL to work in many more cases.

Don't create REPLY as an integer if it didn't previously exist
as one, even if the value to be set is integral, as this is likely to
mess up later uses of REPLY.
2015-10-29 15:01:07 +00:00
Peter Stephenson
d45a68c546 36974: fix some functions with empty argument lists 2015-10-27 09:28:36 +00:00
Barton E. Schaefer
609273875d 36968: use addmodulefd() to tell the shell about the descriptor of the dbm file 2015-10-26 07:25:51 -07:00
Peter Stephenson
15490398d7 36944: extend fd management to zsocket 2015-10-24 20:48:47 +01:00
Peter Stephenson
1f6dcf9bcd 36941: Mark file descripors in ztcp as used.
Allow such file descriptors to be either internal and closed on exec
or external and so managed explicitly by module.
2015-10-24 20:24:35 +01:00
Barton E. Schaefer
c2254cfe2c 36661: replace obsolete "autobins" setting with "autofeatures" 2015-09-27 12:43:03 -07:00