Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 34403: refine 34399 to avoid settyinfo() when the input descriptor is not a TTY | Barton E. Schaefer | 2015-01-26 | 1 | -2/+2 |
| | |||||
* | 34387: Avoid loading the main zsh binary as a module | Mikael Magnusson | 2015-01-27 | 1 | -1/+3 |
| | |||||
* | 34382: Handle NULL return from dlerror() more gracefully | Mikael Magnusson | 2015-01-27 | 1 | -1/+2 |
| | |||||
* | Unsetting gdbm tied variable basically works. | Peter Stephenson | 2015-01-26 | 1 | -1/+25 |
| | | | | | | | Allows variables in nested scope. However, explicitly untying a variable doesn't properly expose the scope above. | ||||
* | 34399: fix polltty thinko from 34365 | Barton E. Schaefer | 2015-01-25 | 1 | -1/+1 |
| | | | | Also add missing ChangeLog entry for 34365. | ||||
* | 34389: fix parsing of ">!" when read from histfile with HIST_LEX_WORDS | Barton E. Schaefer | 2015-01-25 | 1 | -1/+2 |
| | |||||
* | 34365: History lockfile backoff: randomised time. | Peter Stephenson | 2015-01-25 | 2 | -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. | ||||
* | 34350, 34353: document zsh/db/gdbm module, clean up a few things in the code | Barton E. Schaefer | 2015-01-25 | 1 | -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. | ||||
* | 34369: document error and warning codes | Daniel Shahaf | 2015-01-25 | 1 | -1/+15 |
| | |||||
* | 34383: ztrdup() should be dupstring() in new cd code | Peter Stephenson | 2015-01-25 | 1 | -1/+1 |
| | |||||
* | 34331: better handling of NULL in cd. | Peter Stephenson | 2015-01-22 | 2 | -7/+12 |
| | | | | | Problem was return from symbolic link expander in weird cases where there file system isn't behaving itself properly. | ||||
* | 34329: add -S option to which and where | Peter Stephenson | 2015-01-20 | 1 | -2/+2 |
| | |||||
* | users/19751: remove error on failure to close file descriptor by number. | Peter Stephenson | 2015-01-20 | 1 | -1/+6 |
| | | | | | Keep it when closing file descriptor stored in a variable, i.e. explicitly opened by the user. | ||||
* | 34322: bug with interface to parsestr() etc. | Peter Stephenson | 2015-01-18 | 9 | -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. | ||||
* | 34319: fix alias expansion in history for command substitution | Peter Stephenson | 2015-01-18 | 2 | -7/+21 |
| | |||||
* | unposted: another dubious comment in hist.c fixed | Peter Stephenson | 2015-01-16 | 1 | -2/+2 |
| | |||||
* | unposted: improve comment on hist_in_word(). | Peter Stephenson | 2015-01-16 | 1 | -2/+6 |
| | | | | | Commit f2a2f28f7 was a bit less clear about how hist_in_word() was used than it could be. | ||||
* | 32413: turn off history word marking in cmd subst | Peter Stephenson | 2015-01-16 | 2 | -2/+22 |
| | |||||
* | 34304: improve use of new cmd subst in completion | Peter Stephenson | 2015-01-16 | 1 | -10/+103 |
| | |||||
* | 34280: more widespread use of FORCE_FLOAT. | Peter Stephenson | 2015-01-15 | 1 | -1/+12 |
| | | | | Add the case of variables read for use in arithmetic expressions. | ||||
* | 34287: preprocessor for signal name generation. | Peter Stephenson | 2015-01-15 | 1 | -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. | ||||
* | Propagate float/integer type in arithmetic assignment. | Peter Stephenson | 2015-01-12 | 1 | -1/+28 |
| | | | | | | Add test. Mention this and also floating point mod change in README. | ||||
* | 34230: call fmod() for modulo with floats | Barton E. Schaefer | 2015-01-11 | 1 | -3/+5 |
| | |||||
* | 34234: use structures for normal and raw lexical buffer state | Peter Stephenson | 2015-01-11 | 2 | -116/+118 |
| | |||||
* | 34220: new $(...) handling needs to back up over alias expansion | Peter Stephenson | 2015-01-10 | 1 | -0/+6 |
| | |||||
* | unposted: update copyright for new Src/context.c | Peter Stephenson | 2015-01-10 | 1 | -5/+5 |
| | |||||
* | 34213: in previous patch, do not change usepm if it is already set | Barton E. Schaefer | 2015-01-10 | 1 | -1/+1 |
| | |||||
* | 34212: do not change unset-ness of special parameters when exporting them | Barton E. Schaefer | 2015-01-10 | 1 | -2/+6 |
| | |||||
* | select: Fix leak of 256 bytes on every loop when zle is not used | Mikael Magnusson | 2015-01-10 | 1 | -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). | ||||
* | hist: remove wrong NULL terminator | Mikael Magnusson | 2015-01-10 | 1 | -1/+0 |
| | | | | This actually writes a NULL to some arbitrary location in the caller function's stack. Found by Coverity (Issue 1255746). | ||||
* | Rearrange context saving. | Peter Stephenson | 2015-01-09 | 14 | -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. | ||||
* | Fix a typo in bin_print error message | Mikael Magnusson | 2015-01-09 | 1 | -3/+3 |
| | |||||
* | Fix command substitutions to parse contents as they are read in. | Peter Stephenson | 2015-01-08 | 5 | -193/+359 |
| | | | | | | | Do this by refactoring misnamed lexsave()/lexrestore() to allow continuity of history and input. Add test. | ||||
* | 34154/34155: reorder bin_print() to avoid leaking the output descriptor when ↵ | Barton E. Schaefer | 2015-01-07 | 1 | -29/+34 |
| | | | | incorrect/incompatible options were passed | ||||
* | 34144: allocate origline by ztrdup(), not by dupstring() | Jun-ichi Takimoto | 2015-01-07 | 2 | -3/+6 |
| | | | | | If origline is allocated in heap, it will have been freed when menuselect() is called directly as a widget. | ||||
* | 34122: module: allow NULL third argument as intended | Bart Schaefer | 2015-01-06 | 1 | -1/+1 |
| | | | | Found by Coverity. | ||||
* | 34138: wcs_nicechar: only deref widthp if it was given | Mikael Magnusson | 2015-01-06 | 1 | -1/+1 |
| | |||||
* | 34120: compctl, jobs: Check contents instead of array | Mikael Magnusson | 2015-01-06 | 2 | -2/+2 |
| | | | | | | text is an array in the struct, and can never be null. Found by Coverity (Issue 1255780). | ||||
* | 34108: Don't leak ifs stuff | Mikael Magnusson | 2015-01-06 | 1 | -2/+2 |
| | | | | Found by Coverity (Issue 1255785). | ||||
* | 34107: getsubsargs: free ptr1 before returning | Mikael Magnusson | 2015-01-06 | 1 | -0/+1 |
| | | | | Found by Coverity (Issue 439073). | ||||
* | 34134: anon funcs: don't leak shf and related data | Mikael Magnusson | 2015-01-06 | 1 | -0/+6 |
| | | | | Found by Coverity (Issue 439076). | ||||
* | 34112: typeset: fix leak of oldval | Mikael Magnusson | 2015-01-06 | 1 | -0/+2 |
| | | | | Found by Coverity (Issue 1255803). | ||||
* | 34106: hist: use zhtricat instead of tricat | Mikael Magnusson | 2015-01-06 | 1 | -1/+1 |
| | | | | Found by Coverity (Issue 1255769). | ||||
* | 34113: whence: use dupstring to not leak memory | Mikael Magnusson | 2015-01-06 | 1 | -1/+1 |
| | | | | | All other assignments to buf use the heap, and it's never freed. Found by Coverity (Issue 1255786). | ||||
* | 34119: complist: Fix leak of string in clnicezputs | Mikael Magnusson | 2015-01-06 | 1 | -0/+2 |
| | | | | Found by Coverity (Issue 1255808). | ||||
* | 34105: subst: remove dead code | Mikael Magnusson | 2015-01-06 | 1 | -1/+1 |
| | | | | Found by Coverity (Issue 1255810). | ||||
* | 34121: compresult: Remove unneeded NULL check | Mikael Magnusson | 2015-01-06 | 1 | -1/+1 |
| | | | | | The variable is set to if NULL at the start of the function, and derefed on the previous line. Found by Coverity (Issue 1255843). | ||||
* | 34104: compctl: Remove pointless check | Mikael Magnusson | 2015-01-06 | 1 | -1/+1 |
| | | | | | cc has already been derefed a bunch of times leading up to here. Found by Coverity (Issue 1255841). | ||||
* | 34115: compcore: Fix size argument to zfree | Mikael Magnusson | 2015-01-06 | 1 | -1/+1 |
| | | | | | Found by Coverity (Issue 1255852), has no impact unless using --enable-zsh-mem, and even then it is minimal. | ||||
* | 34117: zle: size_t is unsigned, use int instead | Mikael Magnusson | 2015-01-06 | 1 | -1/+1 |
| | | | | | | The function wctomb returns an int according to my manpage, and we furthermore check if it is negative, and then return it, and the function signature is int, so declaring it as an int seems to make more sense. |