Barton E. Schaefer
32b4cb0e73
34734: further aliasing adjustments and doc
...
restrict token aliasing (34641) to global aliases; tighten up POSIX_ALIASES to better match spec; update Aliasing doc to cover this and clarify older behavior
2015-03-18 Peter Stephenson <p.stephenson@samsung.com>
* 34723: configure.ac: turn off fixed site function directory if
2015-03-18 18:01:54 -07:00
Peter Stephenson
2f3547689c
34653: move aborted vared lines to ZLE_VARED_ABORTED
2015-03-06 09:51:16 +00:00
Peter Stephenson
506eaa0a63
34651: Avoid core dump if no lexical token
2015-03-05 10:02:38 +00:00
Jun-ichi Takimoto
4bc554bb8b
34636: replace broken isprint() on Mac OS X
2015-03-05 01:48:34 +09:00
Peter Stephenson
0ac87e3f59
34641: make it possible to alias tokens
2015-03-04 15:56:17 +00:00
Barton E. Schaefer
628d2f4f8a
34634: avoid infinite recursion on (/)# extendedglob
2015-02-27 10:10:19 -08:00
Peter Stephenson
c96606cc06
34623: free history more often if "remetafying"
2015-02-23 17:38:16 +00:00
Mikael Magnusson
ed43cf2768
34615 + 34619: Remeta one frame earlier
2015-02-23 18:09:47 +01:00
Peter Stephenson
6fa63a0ce2
34606: fix up nested arithmetic substitution
...
Arithmetic within a parameter substitution is a special
case that needs fixing with the introduction of the new
Inparmath token.
Add test.
2015-02-22 21:32:08 +00:00
Peter Stephenson
bcc4ab792d
34604: Work around problem with changes in Meta characters.
...
If reading in a file that contains characters that should be
metafied but are not, fix up on the fly. Only need when using
HIST_LEX_WORDS.
2015-02-22 20:22:40 +00:00
Barton E. Schaefer
a4ff8e6957
34590: queue_signals() around more scopes that manipulate global state
2015-02-20 18:45:36 -08:00
Peter Stephenson
b237ba0a8e
34587: ensure multibyte characters don't overflow.
...
They could start incorporating tokens, with bad karma.
Add test.
2015-02-20 16:25:54 +00:00
Barton E. Schaefer
df7a657b10
34568: use META_HEAPDUP when passing dlerror() string to metafy()
2015-02-19 08:26:03 -08:00
Peter Stephenson
2cbf9d7e65
34573: Safer failure to handle command substitution
2015-02-19 12:01:16 +00:00
Peter Stephenson
52e938bac9
34570: Another nasty command / math substituion thing.
...
Mark arithmetic substitutions with tokens to make sure the substitution
go knows what to do. Before it was guessing by counting the
parentheses at the end.
2015-02-19 10:22:40 +00:00
Peter Stephenson
9b21dcada9
Fix up memory allocation for previous patch
2015-02-17 09:56:09 +00:00
Peter Stephenson
126fb61c7c
34560: Fix $(( that's actually a multiline cmd subst.
2015-02-16 17:16:57 +00:00
Peter Stephenson
8ebe18c081
34530: PRINT_EXIT_VALUE with anonymous functions.
...
Simpler fix, avoiding structural changes.
2015-02-16 12:37:38 +00:00
Barton E. Schaefer
2335d62548
34551: Avoid adding an extra "/" to the target path in cd_try_chdir() when the current directory is "/"
2015-02-15 20:20:03 -08:00
Barton E. Schaefer
2c13d9fb0d
34543: Prevent crash on garbage bytes inside $(...)
...
Garbage input (nul bytes, etc.) can cause the $(...) parser to become
confused during look-ahead and attempt to back up the input too far.
This commit catches the error but does not fix the underlying cause.
2015-02-14 10:43:10 -08:00
Peter Stephenson
daa7d99702
34546: further $_ with anon function fix.
...
Also add tests.
2015-02-13 21:31:31 +00:00
Peter Stephenson
7e6faf7237
34519: $_ for arguments of anonymous function
2015-02-12 19:48:50 +00:00
Barton E. Schaefer
7398fea059
34514: Back out 34485, an alternate solution needs to be worked out.
...
(Tweaked to keep the unrelated hunk of the E01 test.)
2015-02-12 09:27:53 -08:00
Peter Stephenson
638bccb1c5
users/19850: add pattern support to watch variable
2015-02-11 12:52:22 +00:00
Mikael Magnusson
0209635832
34490: Fix leak on print -zf/-sf error
2015-02-10 13:03:51 +01:00
Mikael Magnusson
2dbbc88d0b
34488: Fix use-after-free for print -zf and print -sf
2015-02-10 13:03:49 +01:00
Peter Stephenson
da86d6b4f2
34485: More rationalisation for anonymous functions.
...
Don't attempt to treat as "simple" case as there are too many
hidden problems.
Pull out some post-execution functions to a common case in
execcmd().
2015-02-09 16:39:29 +00:00
Mikael Magnusson
dfbb5e4853
34466: Fix double unmeta in rm verification
2015-02-09 05:13:34 +01:00
Jun-ichi Takimoto
1f62d8d0be
34451: use mmap() also on Mac OS X
...
Let MAP_ANONYMOUS be an alias to MAP_ANON if the former is not
defined.
2015-02-03 20:50:26 +09:00
Peter Stephenson
1a7473cbc1
34455: Further gdbm parameter fixes.
...
Fix memory leak with name of parameter.
Unset old parameter before opening db as it might close an existing
db.
2015-02-03 10:31:03 +00:00
Barton E. Schaefer
1254538a41
34447: fix assignment of key-value array to ztie'd parameter.
...
Add gdbmhashsetfn() for this purpose. Erases and reorganizes the database
before bulk assign.
2015-02-02 09:46:08 -08:00
Barton E. Schaefer
3ae6fb965f
34446: add "ztie -r" and "zuntie -u", update documentation
2015-02-01 14:01:53 -08:00
Peter Stephenson
ce211bb8d1
34439: unset variable about to be tied
2015-01-30 20:03:02 +00:00
Peter Stephenson
bc8491c3dc
34430: parameter fixes for gdbm tied hash.
...
Probably fix the issue with correct parameter hiding or not hiding.
A little extra safety checking.
Possibly fixed a memory leak with untying.
2015-01-29 21:05:17 +00:00
Barton E. Schaefer
5751de7975
34403: refine 34399 to avoid settyinfo() when the input descriptor is not a TTY
2015-01-26 18:48:25 -08:00
Mikael Magnusson
cae0be3af6
34387: Avoid loading the main zsh binary as a module
2015-01-27 00:18:47 +01:00
Mikael Magnusson
bac2bbd058
34382: Handle NULL return from dlerror() more gracefully
2015-01-27 00:17:23 +01:00
Peter Stephenson
5136628599
Unsetting gdbm tied variable basically works.
...
Allows variables in nested scope.
However, explicitly untying a variable doesn't properly expose
the scope above.
2015-01-26 18:10:39 +00:00
Barton E. Schaefer
494c251cb0
34399: fix polltty thinko from 34365
...
Also add missing ChangeLog entry for 34365.
2015-01-25 16:07:49 -08:00
Barton E. Schaefer
2546c86244
34389: fix parsing of ">!" when read from histfile with HIST_LEX_WORDS
2015-01-25 13:15:34 -08:00
Peter Stephenson
4688de1677
34365: History lockfile backoff: randomised time.
...
Time doubles on each lock failure.
zsleep() provides microsecond resolution for sleep; uses nanosleep() if
available, else select via means of existing tty poll function.
2015-01-25 20:29:18 +00:00
Barton E. Schaefer
2fa11b7c54
34350, 34353: document zsh/db/gdbm module, clean up a few things in the code
...
Still core dumps at this revision if the tied parameter is forced to be a local and is not untied before end of scope.
2015-01-25 11:34:26 -08:00
Daniel Shahaf
f7a2fba534
34369: document error and warning codes
2015-01-25 18:08:29 +00:00
Peter Stephenson
ccd3663d4e
34383: ztrdup() should be dupstring() in new cd code
2015-01-25 18:03:20 +00:00
Peter Stephenson
12b813b589
34331: better handling of NULL in cd.
...
Problem was return from symbolic link expander in weird cases
where there file system isn't behaving itself properly.
2015-01-22 20:20:15 +00:00
Peter Stephenson
0e3548994e
34329: add -S option to which and where
2015-01-20 17:31:28 +00:00
Peter Stephenson
e6d9642467
users/19751: remove error on failure to close file descriptor by number.
...
Keep it when closing file descriptor stored in a variable, i.e.
explicitly opened by the user.
2015-01-20 09:29:22 +00:00
Peter Stephenson
c6c9f5daf2
34322: bug with interface to parsestr() etc.
...
Was showing up in places like ${(e)...} where command substitution
could reallocate the token string, but actually there was never any
guarantee that the lexer wouldn't do that, so this was always
a bit iffy.
2015-01-18 22:38:57 +00:00
Peter Stephenson
e34ce85151
34319: fix alias expansion in history for command substitution
2015-01-18 16:43:26 +00:00
Peter Stephenson
aa503b592b
unposted: another dubious comment in hist.c fixed
2015-01-16 20:35:41 +00:00