1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-13 11:21:13 +02:00
Commit graph

3257 commits

Author SHA1 Message Date
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
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
9e06828a7f 37208: check for restricted parameter before changing from unset to set
Also, return NULL from setnparam() on failure to retrieve value (avoids
null-pointer dereference); add some expository comments
2015-11-23 21:48:49 -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
bc30d6bfca 37206: fix ${(t)param} for "typeset -H param" 2015-11-23 19:18:44 -08:00
Peter Stephenson
58d040fd85 37203: WARN_CREATE_GLOBAL test in wrong place for associative array 2015-11-23 15:50:13 +00:00
Peter Stephenson
acbd2ca701 37191: fix strftime() expansion issue with %p and %P.
In some locales the output from this can validly be empty, so
we need to treat them specially.
2015-11-22 18:14:13 +00:00
Peter Stephenson
b0323cab3b 37187: infinite loop in "hash -m" 2015-11-22 16:25:06 +00:00
Peter Stephenson
ae4cf7b743 37186: a couple more WARN_CREATE_GLOBAL fixes 2015-11-22 16:06:20 +00:00
Mikael Magnusson
ae0420c46a 37161: Disable the heuristic setting RPROMPT_INDENT to 0 2015-11-20 14:33:44 +01:00
Peter Stephenson
2737ae4a66 37168: No WARN_CREATE_GLOBAL on special parameters 2015-11-20 11:55:07 +00:00
Peter Stephenson
72a67716ac 20974: Bug with scalar assignment to special array in typeset 2015-11-20 11:18:16 +00:00
Barton E. Schaefer
59235205c6 37145: suppress alias expansion in skipcomm()
Thus defer parsing aliases in $(...) et al. into the subshell
2015-11-18 11:11:37 -08:00
Peter Stephenson
ca0cb17011 37128: work around alias expansion trashing subscript parsing 2015-11-17 17:44:12 +00:00
Daniel Shahaf
9ab9da49f7 unposted: Make $EDITOR's jump-to-matching-brace happy. 2015-11-13 20:18:25 +00:00
Peter Stephenson
d814071b14 37096: Another $${(P)...} tweak.
Make a top level (P) work with nested ones, i.e. ${(P)${(P)...}...}
2015-11-12 14:28:15 +00:00
Peter Stephenson
7a951ef93e 37094: Further tweaks to parameter name references.
Safety in array test.

Make nested references work.

Add parameter tests.
2015-11-11 22:14:16 +00:00
Peter Stephenson
830d54e629 37092: make nested ${(P)name} properly refer to parameter on return 2015-11-11 18:04:20 +00:00
Peter Stephenson
f1312d1e22 37091: clear lastline and lastlinesz when freeing 2015-11-11 16:09:28 +00: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
Barton E. Schaefer
30b90f166e 37080: use paramtab abstraction more consistently, add explanatory comments 2015-11-08 12:44:31 -08:00
Peter Stephenson
e8d6041f69 37074: extend previous fix to over whitespace at end 2015-11-07 18:05:43 +00:00
Peter Stephenson
0fcc6c8fb2 37073: another SH_WORD_SPLIT problem.
In cases like x${:- y} the space was simply removed instead of
being used for splitting.
2015-11-06 17:28:02 +00:00
Peter Stephenson
ba36967b57 37038: add -l option to emulate to list options in emulations 2015-11-01 18:12:40 +00:00
Barton E. Schaefer
682e779a21 unposted (cf. 36998,36999): undo 36956 / restore 34451 with expanded comment about the flip-flopping 2015-10-31 09:54:04 -07:00
Daniel Shahaf
51d50218fb unposted (after 37018): Fix typo in error message. 2015-10-30 15:03:12 +00:00
Peter Stephenson
58f4cccb1f 37022: add GLOB_STAR_SHORT option to abbreviate ** and *** 2015-10-30 12:28:07 +00:00
Peter Stephenson
de9effbce6 37018: Make WARNCREATEGLOBAL more consistent.
Wd don't need separate math handling any more, and can make it
output the function name in all cases.
2015-10-29 17:06:27 +00: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
b498bd7ce5 36982: Fix bug with (#cN) patterns and remove redundant description.
We need to restore the current count of matches when returning to
match at the point where we previously matched.
2015-10-27 11:54:19 +00:00
Peter Stephenson
d45a68c546 36974: fix some functions with empty argument lists 2015-10-27 09:28:36 +00:00
Kamil Dudka
81fa9fd25a 36906: quite_signals() in ZSH_MEM realloc() 2015-10-26 14:27:26 -07: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
Barton E. Schaefer
8934007f25 36956: revert 34451, mmap() is too slow on MacOS 2015-10-26 07:19:01 -07:00
Peter Stephenson
11ca38c6d9 users/20825: fix crash when complex completion hooks.
get_undo_current_change() needs protecting against execution in
completion environment.
2015-10-26 10:00:54 +00:00
Jun-ichi Takimoto
a40417929c 36911: '-optarg' should not match optspec '-opt='
Remove the requirement that -xy= should come before -x= in the
list of optspecs passed to _arguments.
2015-10-25 23:42:03 +09:00
Barton E. Schaefer
506d592380 36943: restore scan for reclaimable blocks in freeheap()
That scan had been removed by 36834, but testing showed memory usage
climbing too high in cases where a new arena was always added at the
end of the heap list.
2015-10-24 13:43:21 -07:00
Peter Stephenson
272119b774 unposted: small typo again 2015-10-24 21:00:30 +01:00
Peter Stephenson
c8c42d6ed5 unposted: small typo 2015-10-24 20:59:48 +01: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
b970ef6ef5 unposted: strdup should be ztrdup 2015-10-21 15:13:45 -07:00
Barton E. Schaefer
5cb75f0d41 36909: in getargs(), sanity-check the offsets for start and end of the requested words, in case of overflow 2015-10-21 15:13:17 -07:00