summary refs log tree commit diff
path: root/Src/utils.c
Commit message (Collapse)AuthorAgeFilesLines
* 35353: print -x and print -X expand tabsPeter Stephenson2015-06-021-0/+102
|
* 35067: Add (b) parameter flag for pattern char backslashing.Peter Stephenson2015-05-101-4/+19
| | | | | | Doc tweak from Daniel in 35071. Includes test.
* 35064: rename ISPRINT to ZISPRINT to avoid conflictJun-ichi Takimoto2015-05-091-2/+2
|
* 34636: replace broken isprint() on Mac OS XJun-ichi Takimoto2015-03-051-2/+2
|
* 34587: ensure multibyte characters don't overflow.Peter Stephenson2015-02-201-0/+8
| | | | | | They could start incorporating tokens, with bad karma. Add test.
* 34466: Fix double unmeta in rm verificationMikael Magnusson2015-02-091-1/+1
|
* 34403: refine 34399 to avoid settyinfo() when the input descriptor is not a TTYBarton E. Schaefer2015-01-261-2/+2
|
* 34399: fix polltty thinko from 34365Barton E. Schaefer2015-01-251-1/+1
| | | | Also add missing ChangeLog entry for 34365.
* 34365: History lockfile backoff: randomised time.Peter Stephenson2015-01-251-4/+92
| | | | | | | 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.
* 34369: document error and warning codesDaniel Shahaf2015-01-251-1/+15
|
* 34383: ztrdup() should be dupstring() in new cd codePeter Stephenson2015-01-251-1/+1
|
* 34331: better handling of NULL in cd.Peter Stephenson2015-01-221-4/+7
| | | | | Problem was return from symbolic link expander in weird cases where there file system isn't behaving itself properly.
* 34322: bug with interface to parsestr() etc.Peter Stephenson2015-01-181-1/+1
| | | | | | | 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.
* 34138: wcs_nicechar: only deref widthp if it was givenMikael Magnusson2015-01-061-1/+1
|
* 34108: Don't leak ifs stuffMikael Magnusson2015-01-061-2/+2
| | | | Found by Coverity (Issue 1255785).
* 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/19667: whence -S shows intermediate steps in symlink expansionPeter Stephenson2015-01-021-7/+60
|
* 33876: etc.: Separate errors and keyboards interruptsPeter Stephenson2014-12-111-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* 33932: revise boundary check in unmeta()Jun-ichi Takimoto2014-12-091-5/+3
|
* 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.
* 33818: fix types passed to sizeof detected by coverity as being wrongOliver Kiddle2014-11-301-3/+3
|
* 33793: add 0b binary interpretation to integer constantsPeter Stephenson2014-11-261-0/+2
|
* Marc Finet: problems with working directory rationalisation.Peter Stephenson2014-11-131-1/+5
| | | | | | Ensure the length of the directory is kept up to date. Abort following symlinks as soon as there's an error.
* 33320 (cf. PWS 33311): revert 33069, fix lexing of bangchar during completionBarton E. Schaefer2014-10-021-7/+37
| | | | add typtab_flags bits (replaces specialcomma boolean) to record any unusual handling of typtab entries; signal safety; make bangchar non-special during completion lexing of the command line.
* Increase size of xbuf2 in xsymlinks to make gcc FORTIFY_SOURCE=2 happy.Barton E. Schaefer2014-08-171-1/+1
|
* 33012: add an error return value (-1) to xsymlinks()Barton E. Schaefer2014-08-151-7/+8
|
* 32932: add hmkarray() and use to fix leakPeter Stephenson2014-08-011-0/+11
|
* 32918: add %. to ztrftime for use in promptsPeter Stephenson2014-07-301-1/+27
|
* 32737, 32736 (32741), 32735, 32734, 32733, 32732 (32739): Strict compilationNikolas Garofil2014-06-071-3/+5
| | | | | | | | | | | fixes Src/utils.c: properly ifdef declarations Src/zsh_system.h: memmove() should return its dest argument Src/signals.c: define ret before use Src/mem.c: remove unused pointers Src/prototypes.h: use size_t in bcopy() Src/compat.c: fix const declaration inconsistency
* 32716: properly test iconv return values for error conditionsBarton E. Schaefer2014-06-051-4/+3
|
* 36526: when __APPLE__ is defined at compile, normalize Unicode filenames in ↵Barton E. Schaefer2014-06-021-0/+31
| | | | zreaddir()
* 32592: add CORRECT_IGNORE_FILE variableTomoki Sekiyama2014-04-291-1/+10
|
* 32294: prevent buffer overflow when scanning very long directory paths for ↵Barton E. Schaefer2014-01-191-13/+18
| | | | symbolic links
* 32061: Fix "use of uninitialized memory" in metafyBarton E. Schaefer2013-11-271-2/+2
|
* 32023: better interrupt handling at RM_STAR_WAITBarton E. Schaefer2013-11-191-0/+2
|
* 31650: use zlong for mailcheck parameters to ensure rangePeter Stephenson2013-08-111-4/+4
|
* 31648: fix timing errors in mailcheckjoe M2013-08-101-3/+6
|
* 31350: block SIGWINCH nearly all the time, exceptBart Schaefer2013-04-301-0/+7
| | | | | when about to calculate prompts or do synchronous read, so syscalls are not interrupted by window size changes.
* add missing mod_exportPeter Stephenson2012-12-161-1/+1
|
* 30647, 30649: allow underscores in numeric constantsPeter Stephenson2012-09-111-9/+19
|
* 30530,30533: fix problems with COLUMNS or LINES < 1, and related issuesBart Schaefer2012-06-271-1/+1
|
* users/17046: don't count too many elements when splitting quoted parameterPeter Stephenson2012-05-011-1/+1
| | | | substitution on null parameter
* 30413: (q-) parameter flag should quote null stringPeter Stephenson2012-04-161-10/+9
| | | | (q-q) etc. should be treated as errors
* 30351 + 30352: metafy strings on import into zsh variablesPeter Stephenson2012-03-131-0/+22
|
* 30307 plus tweak suggsted by Wayne: use %lld for zlong when long longPeter Stephenson2012-03-051-2/+6
|
* 29940: metafy() added null termination even if buffer was not modifiablePeter Stephenson2011-12-031-2/+2
|
* users/16581: skip correction shortcut based on command table search whenBart Schaefer2011-11-151-9/+13
| | | | | the word is not in command position; on rejected command correction, reset incremental path hashing.
* 29799: swap order of RESET_PROMPT / REFRESH in adjustwinsize().Bart Schaefer2011-10-021-1/+1
|
* users/16253, users/16255: a nulstring should be split like an empty stringPeter Stephenson2011-08-171-0/+4
|