about summary refs log tree commit diff
path: root/Src/utils.c
Commit message (Collapse)AuthorAgeFilesLines
* unposted: small typo againPeter Stephenson2015-10-241-1/+1
|
* unposted: small typoPeter Stephenson2015-10-241-1/+1
|
* 36944: extend fd management to zsocketPeter Stephenson2015-10-241-10/+15
|
* 36941: Mark file descripors in ztcp as used.Peter Stephenson2015-10-241-0/+26
| | | | | Allow such file descriptors to be either internal and closed on exec or external and so managed explicitly by module.
* 36773: limit CORRECT / CORRECT_ALL to directory names in cases where it is ↵Barton E. Schaefer2015-10-041-19/+30
| | | | obvious that a directory is expected
* 36562: sanitize $PWD on import, per POSIXBarton E. Schaefer2015-09-191-3/+17
|
* cf. 36554: remove unnecessary pointer dereferenceBarton E. Schaefer2015-09-191-1/+1
|
* 36552 plus test: fix Nularg string in quotestring(QT_DOLLARS)Barton E. Schaefer2015-09-171-0/+6
|
* 36380: Avoid gcc case syntaxMikael Magnusson2015-09-011-1/+2
|
* 36376: handle signals during read1char() so it is possible to interrupt ↵Barton E. Schaefer2015-09-011-1/+6
| | | | correct/correctall prompts
* 36262: Replace fix for missing unmeta in chdir().Peter Stephenson2015-08-211-4/+9
| | | | | | | It was needed in the argument to one of a pair of lchdir()s rather than within zchdir(). Add tests for the case of a character with 0x83 within it.
* 36227: attempt to fix metafication problem with ztrftime.Peter Stephenson2015-08-181-3/+27
| | | | | fmt is treated as metafied on entry; use returned length to ensure we metafy or output the correct length if there are embedded nulls.
* 35928: '%-m' should work even if not supported by strftime(3)Jun-ichi Takimoto2015-08-081-1/+1
| | | | Also clarify document.
* 35809: fix $((...)) completion by _expand widget.Peter Stephenson2015-07-251-1/+19
| | | | | This changes internal quoting of the form still including tokens not to add unnecessary internal backslashes.
* 35872: protect against NULL pointers in unmetaPeter Stephenson2015-07-231-1/+4
|
* 35826: add getsparam_u() to return unmetafied string, use it for a number of ↵Barton E. Schaefer2015-07-221-3/+7
| | | | references to non-special params
* 35745: ztrftime: Pass everything unhandled to the system strftime()Mikael Magnusson2015-07-091-25/+54
|
* Add non-metafied character length handling.Peter Stephenson2015-06-121-6/+83
| | | | | | | Use this in regex module and add test using $'\ua0'. Rename mb_metacharinit() to mb_charinit() as it does not involve metafied characters.
* 35386: expand tabs where useful in builtins outputing function.Peter Stephenson2015-06-051-4/+39
| | | | | | Also add to zed -f. Option is -x <numm>.
* 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
|