summaryrefslogtreecommitdiff
path: root/Src
AgeCommit message (Collapse)AuthorFilesLines
2015-02-1434543: Prevent crash on garbage bytes inside $(...)Barton E. Schaefer2-4/+8
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-1334546: further $_ with anon function fix.Peter Stephenson1-4/+13
Also add tests.
2015-02-1234519: $_ for arguments of anonymous functionPeter Stephenson1-1/+4
2015-02-1234514: Back out 34485, an alternate solution needs to be worked out.Barton E. Schaefer2-27/+30
(Tweaked to keep the unrelated hunk of the E01 test.)
2015-02-11users/19850: add pattern support to watch variablePeter Stephenson1-3/+24
2015-02-1034490: Fix leak on print -zf/-sf errorMikael Magnusson1-1/+17
2015-02-1034488: Fix use-after-free for print -zf and print -sfMikael Magnusson1-6/+12
2015-02-0934485: More rationalisation for anonymous functions.Peter Stephenson2-30/+27
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-0934466: Fix double unmeta in rm verificationMikael Magnusson1-1/+1
2015-02-0334451: use mmap() also on Mac OS XJun-ichi Takimoto1-0/+4
Let MAP_ANONYMOUS be an alias to MAP_ANON if the former is not defined.
2015-02-0334455: Further gdbm parameter fixes.Peter Stephenson1-12/+16
Fix memory leak with name of parameter. Unset old parameter before opening db as it might close an existing db.
2015-02-0234447: fix assignment of key-value array to ztie'd parameter.Barton E. Schaefer1-5/+56
Add gdbmhashsetfn() for this purpose. Erases and reorganizes the database before bulk assign.
2015-02-0134446: add "ztie -r" and "zuntie -u", update documentationBarton E. Schaefer1-12/+32
2015-01-3034439: unset variable about to be tiedPeter Stephenson1-2/+15
2015-01-2934430: parameter fixes for gdbm tied hash.Peter Stephenson2-8/+36
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-2634403: refine 34399 to avoid settyinfo() when the input descriptor is not a TTYBarton E. Schaefer1-2/+2
2015-01-2734387: Avoid loading the main zsh binary as a moduleMikael Magnusson1-1/+3
2015-01-2734382: Handle NULL return from dlerror() more gracefullyMikael Magnusson1-1/+2
2015-01-26Unsetting gdbm tied variable basically works.Peter Stephenson1-1/+25
Allows variables in nested scope. However, explicitly untying a variable doesn't properly expose the scope above.
2015-01-2534399: fix polltty thinko from 34365Barton E. Schaefer1-1/+1
Also add missing ChangeLog entry for 34365.
2015-01-2534389: fix parsing of ">!" when read from histfile with HIST_LEX_WORDSBarton E. Schaefer1-1/+2
2015-01-2534365: History lockfile backoff: randomised time.Peter Stephenson2-14/+123
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-2534350, 34353: document zsh/db/gdbm module, clean up a few things in the codeBarton E. Schaefer1-20/+29
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-2534369: document error and warning codesDaniel Shahaf1-1/+15
2015-01-2534383: ztrdup() should be dupstring() in new cd codePeter Stephenson1-1/+1
2015-01-2234331: better handling of NULL in cd.Peter Stephenson2-7/+12
Problem was return from symbolic link expander in weird cases where there file system isn't behaving itself properly.
2015-01-2034329: add -S option to which and wherePeter Stephenson1-2/+2
2015-01-20users/19751: remove error on failure to close file descriptor by number.Peter Stephenson1-1/+6
Keep it when closing file descriptor stored in a variable, i.e. explicitly opened by the user.
2015-01-1834322: bug with interface to parsestr() etc.Peter Stephenson9-26/+46
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-1834319: fix alias expansion in history for command substitutionPeter Stephenson2-7/+21
2015-01-16unposted: another dubious comment in hist.c fixedPeter Stephenson1-2/+2
2015-01-16unposted: improve comment on hist_in_word().Peter Stephenson1-2/+6
Commit f2a2f28f7 was a bit less clear about how hist_in_word() was used than it could be.
2015-01-1632413: turn off history word marking in cmd substPeter Stephenson2-2/+22
2015-01-1634304: improve use of new cmd subst in completionPeter Stephenson1-10/+103
2015-01-1534280: more widespread use of FORCE_FLOAT.Peter Stephenson1-1/+12
Add the case of variables read for use in arithmetic expressions.
2015-01-1534287: preprocessor for signal name generation.Peter Stephenson1-1/+10
Some gcc header files are difficult for the signames2.awk script to process, so if the preprocessor is gcc give the option -P to strip out the unwanted additions.
2015-01-12Propagate float/integer type in arithmetic assignment.Peter Stephenson1-1/+28
Add test. Mention this and also floating point mod change in README.
2015-01-1134230: call fmod() for modulo with floatsBarton E. Schaefer1-3/+5
2015-01-1134234: use structures for normal and raw lexical buffer statePeter Stephenson2-116/+118
2015-01-1034220: new $(...) handling needs to back up over alias expansionPeter Stephenson1-0/+6
2015-01-10unposted: update copyright for new Src/context.cPeter Stephenson1-5/+5
2015-01-1034213: in previous patch, do not change usepm if it is already setBarton E. Schaefer1-1/+1
2015-01-1034212: do not change unset-ness of special parameters when exporting themBarton E. Schaefer1-2/+6
2015-01-10select: Fix leak of 256 bytes on every loop when zle is not usedMikael Magnusson1-1/+1
Reproduce by yes | head -n 1000000 | zsh -c 'select foo in a b c; do done; sleep 30; echo' Found by Coverity (Issue 439082).
2015-01-10hist: remove wrong NULL terminatorMikael Magnusson1-1/+0
This actually writes a NULL to some arbitrary location in the caller function's stack. Found by Coverity (Issue 1255746).
2015-01-09Rearrange context saving.Peter Stephenson14-299/+441
Variables are now associated with the module that declares them, being initialised and saved/restored there. However, as many variables are used for communication between modules, many of them are set in multiple places, so the assignment is ambiguous.
2015-01-09Fix a typo in bin_print error messageMikael Magnusson1-3/+3
2015-01-08Fix command substitutions to parse contents as they are read in.Peter Stephenson5-193/+359
Do this by refactoring misnamed lexsave()/lexrestore() to allow continuity of history and input. Add test.
2015-01-0734154/34155: reorder bin_print() to avoid leaking the output descriptor when ↵Barton E. Schaefer1-29/+34
incorrect/incompatible options were passed
2015-01-0734144: allocate origline by ztrdup(), not by dupstring()Jun-ichi Takimoto2-3/+6
If origline is allocated in heap, it will have been freed when menuselect() is called directly as a widget.