summary refs log tree commit diff
path: root/Src
Commit message (Collapse)AuthorAgeFilesLines
* 34115: compcore: Fix size argument to zfreeMikael Magnusson2015-01-061-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 insteadMikael Magnusson2015-01-061-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.
* 34116: computil: Check for NULL before passing to strlenMikael Magnusson2015-01-061-1/+2
| | | | | The rest of this function appears to be very careful about checking these, then forgets in this one spot. Found by Coverity (Issue 1255805).
* 34118: Don't crash when writing out history if HOST is unsetMikael Magnusson2015-01-061-1/+2
| | | | Found by Coverity (Issue 1255793).
* 34114: emulate: Handle aborting from mixed -L/-c correctlyMikael Magnusson2015-01-061-1/+2
| | | | Somehow Coverity found this (Issue 1255797, Failure to restore non-local value).
* 34103: fix ancient double-quote handling thinko in subst_parse_str()Barton E. Schaefer2015-01-061-2/+4
| | | | This doesn't seem to have mattered, but must in some obscure cases
* 34093: "whence" should always return nonzero when it finds that nothing ↵Barton E. Schaefer2015-01-061-15/+17
| | | | matches its arguments
* 34092: fix miscount of symlink resolution for "..".Peter Stephenson2015-01-041-0/+2
| | | | This caused problems with expanding a path with ".." in "whence -S".
* 34091: typo with "whence -s" expansionsPeter Stephenson2015-01-041-2/+2
|
* users/19671: remove confusion with whence -a.Peter Stephenson2015-01-021-1/+1
| | | | If the argument is a full path don't try to search the path for it.
* users/19667: whence -S shows intermediate steps in symlink expansionPeter Stephenson2015-01-022-13/+66
|
* 34070: fix starting position for memset() from 34005.Daniel Shahaf2014-12-281-1/+1
|
* 34064: assignment before command replaces array with export even when KSH_ARRAYSTakeshi Banse2014-12-271-0/+2
|
* 34065: following an "if" condition, do not test lastval for ERR_EXIT until a ↵Barton E. Schaefer2014-12-272-5/+15
| | | | | | new command is run Includes unposted regression tests.
* 34015: disallow strange environment variable names.Peter Stephenson2014-12-191-16/+23
| | | | | These are ones with the top bit set in any character. Don't import them, and don't export them.
* 34005: region_highlights memory fixPeter Stephenson2014-12-191-2/+8
| | | | Zero uninitialised part of memory when reallocing
* 34002: zshcalloc() in init_keymaps()Barton E. Schaefer2014-12-181-1/+1
|
* 33992: do not attempt attachtty() for process group zero (which is possible ↵Barton E. Schaefer2014-12-181-2/+5
| | | | in a linux pid namespace)
* 34008: metafy the environment on arrival in the shellPeter Stephenson2014-12-181-1/+1
|
* 34006: unmetafy anything put into the environmentPeter Stephenson2014-12-181-1/+11
|
* 33981: more care with region_highlights managementPeter Stephenson2014-12-182-29/+39
|
* 33978: avoid infinite loop in interactive modeJun-ichi Takimoto2014-12-181-1/+3
| | | | | Update command line when accept-and-hold is called in the interactive mode of menu select.
* 33984: bin_dirs() should use zputs() to print metafied directory namesJun Kuriyama2014-12-161-1/+1
|
* 33982: minimal support for pid namespaces by recognizing that GETPGRP() may ↵Chirantan Ekbote2014-12-161-1/+1
| | | | return 0
* 33976: fix overlapping strcpy()Barton E. Schaefer2014-12-151-1/+1
|
* 33956: document key binding changes and remove ^X bindingOliver Kiddle2014-12-132-1/+2
|
* 33846: additional default vi-mode key bindingsOliver Kiddle2014-12-133-5/+12
|
* 33950: ignore KEYTIMEOUT for vi operatorsOliver Kiddle2014-12-123-12/+19
|
* 33876: etc.: Separate errors and keyboards interruptsPeter Stephenson2014-12-1128-124/+273
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Combination of 12 commits from interrupt_abort branch. Basic strategy is to introduce bits to errflag and to set and reset them separately. Remove interrupt status on return to main keymap. Turn off ERRFLAG_INT for always block. Restore bit thereafter: we probably need a new variable in order to allow user interrupts to be reset in the always block. Add TRY_BLOCK_INTERRUPT This works the same as TRY_BLOCK_ERROR, but for a SIGINT, too. Ensure propagation of SIGINT from exited job. If received by foreground job, shell uses ERRFLAG_INT, not ERRFLAG_ERROR, to set the new state. Reset errflag before precmd() Add always block in _main_completion to fix ZLS_COLORS Ensures we get the right state of $ZLS_COLORS at the end of _main_complete even if there's an interrupt. However, the "right state" is a bit messy as it depends on styles.
* 33940: handle backslash-meta correctly in lexerJun-ichi Takimoto2014-12-101-1/+13
|
* 33932: revise boundary check in unmeta()Jun-ichi Takimoto2014-12-091-5/+3
|
* 33924: allow vi line/characterwise mode to be forcedOliver Kiddle2014-12-084-3/+26
|
* 33894: boundary conditions in unmeta(), unmetafy()Barton E. Schaefer2014-12-071-3/+5
| | | | | | | Check that we aren't running off the end of the string when converting the next byte after a Meta byte. This is just defensive programming in case of bad metafied strings coming through from gettokstr(), some repairs there are likely still needed.
* 33854: errors end recursion through scanner()Barton E. Schaefer2014-12-071-1/+1
| | | | Makes **/ more easily interruptible
* 33860: minor fixes to vi mode changesOliver Kiddle2014-12-054-44/+52
|
* 33845: save correct cursor position with push-line from vi command modeOliver Kiddle2014-12-051-0/+2
|
* 33823: overwrite mode shouldn't replace newlinesOliver Kiddle2014-11-301-11/+10
|
* 33820: detect support for realpath() with a NULLOliver Kiddle2014-11-301-25/+22
| | | | argument and fixes to the use of it
* 33800: remove old workaround for ancient systems toOliver Kiddle2014-11-301-41/+2
| | | | consume typeahead before setting up the terminal
* 33818: fix types passed to sizeof detected by coverity as being wrongOliver Kiddle2014-11-305-9/+9
|
* 33816, 33819: GLOB_ASSIGN changes integer and floating type variables to ↵Barton E. Schaefer2014-11-281-1/+9
| | | | string scalars
* unposted: fix compiler set-but-not-used warning.Wayne Davison2014-11-281-2/+4
|
* 33815: Fix word transposition bug.Marc Finet2014-11-281-1/+0
| | | | With a one-character word the wrong two words could be transposed.
* 33793: add 0b binary interpretation to integer constantsPeter Stephenson2014-11-262-2/+6
|
* 33770: avoid calling identical FIONREAD ioctl twice in successionOliver Kiddle2014-11-251-9/+5
|
* 33791: fatal errors in an "always" construct yield nonzero statusBarton E. Schaefer2014-11-251-2/+3
| | | | | | Fatal errors in the try-block part of an "always" construct cause the entire construct to have nonzero status, even when TRY_BLOCK_ERROR is used to suppress the error.
* 33785: Fix leaks of desthost in ztcpMikael Magnusson2014-11-241-0/+4
| | | | Found by coverity.
* 33775: error opening file in $(<...) is not fatalBarton E. Schaefer2014-11-231-2/+2
|
* 33743: use posix_openpt in zpty if it is availableOliver Kiddle2014-11-241-0/+4
|
* 33750: handle function autoloads for DEBUG_BEFORE_CMDBarton E. Schaefer2014-11-211-0/+4
| | | | | gettext2() lacked a case for the WC_AUTOFN word code, tripping a dputs() on TRAPDEBUG the first time each autoloaded function was run.