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

539 commits

Author SHA1 Message Date
Jun-ichi Takimoto
ad9f07e66f 43227: fix memory leaks in term{cap,info}.c 2018-08-01 21:36:44 +09:00
Jun-ichi Takimoto
baedd62f0d 43219 (except term{cap,info}.c): fix several memory leaks 2018-07-31 22:15:58 +09:00
dana
394f3a47e4 43075: Support nanosecond-precision time formatting
* Teach ztrftime() %9. and %N for nanoseconds
* Update prompt expansion to pass sub-second times for time formatting
* Update zsh/stat to pass sub-second times for atime/mtime/ctime

Patch heavily based on Oliver's earlier work @ workers/24059
2018-06-20 17:29:56 -05:00
Eitan Adler
f311619e30 433029: Testing signal return type is no longer needed 2018-06-18 10:18:29 +01:00
dana
796637362a 43039: Mark functions_source (et al.) for auto-loading 2018-06-17 20:34:17 -05:00
Peter Stephenson
9408c4825b users/23472: Add $sysparams[procsubstpid] to zsh/system 2018-06-15 15:02:36 +01:00
Eitan Adler
96ec8cbbf4 42938: name argument to math_func is not unused 2018-06-06 09:35:38 +01:00
Oliver Kiddle
a93abe1170 42488: test cases for 42369 and address some issues in the code 2018-05-13 10:13:42 +02:00
Oliver Kiddle
373efa085d Nelson H. F. Beebe: 19597 (rebased 42369): return Inf, NaN etc from floating point operations instead of errors to allow non-stop IEEE 754 arithmetic 2018-05-13 10:02:01 +02:00
Peter Stephenson
95d861d028 42708: fix for process substitution.
Don't close associated file descriptors in the closem()
tidy up function as they should remain visible to external
processes.  Override if about to exit.

Unit test for the failing case: note this relies on the
existence of /proc/self/fd or equivalent.
2018-04-24 11:48:11 +01:00
Oliver Kiddle
8e6c1d8b47 42605: properly free the vi registers hash 2018-04-07 18:52:37 +02:00
Jun-ichi Takimoto
beadc29214 unposted: add 'static' to a file-local variable 2018-03-24 15:32:43 +09:00
Stephane Chazelas
d2350a1e80 42469: necessary repairs to 42465 found by "make check" 2018-03-18 16:49:42 -07:00
Stephane Chazelas
1219eae829 42465: Pass up error status from readoutput().
This improves the consistency of error reporting from $(...) constructs.
2018-03-15 09:21:47 +00:00
Mikael Magnusson
5c656716ff 42243: Free stuff properly in zsh/pcre module 2018-01-20 13:33:12 +01:00
Sebastian Gniazdowski
1e46f73b8e 42188: Close flock descriptor in failure cases 2018-01-04 17:06:22 +00:00
Thierry Ghelew
9f2271168d 41666: zpty compatibility for OpenBSD 2017-09-11 10:15:15 +01:00
Peter Stephenson
74aff4106a 41542: Fix pcre logic for extracting matched parentheses.
When we went off the end of the array but measured the length
implicitly, we got lucky before.  After 41308 we were looking up lengths
in stale memory.

Rename some variables, clean up the logic, be easier to understand.

Add tests.
2017-08-14 11:17:48 +01:00
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