summaryrefslogtreecommitdiff
path: root/Src/utils.c
AgeCommit message (Collapse)AuthorFilesLines
2016-02-1137946: make rm * warnings more informative.Peter Stephenson1-4/+27
Now count files that would be deleted up to 100.
2016-02-0337868: add 'static' to file local variablesJun-ichi Takimoto1-2/+2
2016-01-2537780: Care printing error if nothing to print.Kamil Dudka1-3/+4
2016-01-2537776: Set errflag before calls to zwarning().Peter Stephenson1-2/+2
This avoids an attempt to call zerr() or zerrnam() recusrively.
2016-01-1937678: Now possible to quote "-" in pattern rangePeter Stephenson1-1/+1
2016-01-15unposted: Extend docstring of callhookfunc().Daniel Shahaf1-0/+3
2015-12-0837348: Tests and fix for ${(q+)...}.Peter Stephenson1-1/+1
Needs dupstring() for empty string case.
2015-12-0737344: restore old printable quoting, add ${(q+)...}.Peter Stephenson1-46/+218
The \C- form is only used inside quotedzputs(). ${(q+)...} outputs a quotedzputs() representation.
2015-12-0737331: Use a single chracter to represent an MB_INCOMPLETE.Peter Stephenson1-6/+10
This is as it is likely to appear as a single character in output even if it has multiple octets.
2015-12-0637326: comment only: multibyte string lenght/width countingPeter Stephenson1-0/+11
2015-12-0637314: upgrade quotedzputs() for non-printable output.Peter Stephenson1-27/+144
Use nicechar with $'..' quoting; upgrade nicechar() etc. to use suitable output.
2015-12-0337296: Avoid needless calloc().Daniel Shahaf1-11/+13
2015-11-2237191: fix strftime() expansion issue with %p and %P.Peter Stephenson1-4/+11
In some locales the output from this can validly be empty, so we need to treat them specially.
2015-10-24unposted: small typo againPeter Stephenson1-1/+1
2015-10-24unposted: small typoPeter Stephenson1-1/+1
2015-10-2436944: extend fd management to zsocketPeter Stephenson1-10/+15
2015-10-2436941: Mark file descripors in ztcp as used.Peter Stephenson1-0/+26
Allow such file descriptors to be either internal and closed on exec or external and so managed explicitly by module.
2015-10-0436773: limit CORRECT / CORRECT_ALL to directory names in cases where it is ↵Barton E. Schaefer1-19/+30
obvious that a directory is expected
2015-09-1936562: sanitize $PWD on import, per POSIXBarton E. Schaefer1-3/+17
2015-09-19cf. 36554: remove unnecessary pointer dereferenceBarton E. Schaefer1-1/+1
2015-09-1736552 plus test: fix Nularg string in quotestring(QT_DOLLARS)Barton E. Schaefer1-0/+6
2015-09-0136380: Avoid gcc case syntaxMikael Magnusson1-1/+2
2015-09-0136376: handle signals during read1char() so it is possible to interrupt ↵Barton E. Schaefer1-1/+6
correct/correctall prompts
2015-08-2136262: Replace fix for missing unmeta in chdir().Peter Stephenson1-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.
2015-08-1836227: attempt to fix metafication problem with ztrftime.Peter Stephenson1-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.
2015-08-0835928: '%-m' should work even if not supported by strftime(3)Jun-ichi Takimoto1-1/+1
Also clarify document.
2015-07-2535809: fix $((...)) completion by _expand widget.Peter Stephenson1-1/+19
This changes internal quoting of the form still including tokens not to add unnecessary internal backslashes.
2015-07-2335872: protect against NULL pointers in unmetaPeter Stephenson1-1/+4
2015-07-2235826: add getsparam_u() to return unmetafied string, use it for a number of ↵Barton E. Schaefer1-3/+7
references to non-special params
2015-07-0935745: ztrftime: Pass everything unhandled to the system strftime()Mikael Magnusson1-25/+54
2015-06-12Add non-metafied character length handling.Peter Stephenson1-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.
2015-06-0535386: expand tabs where useful in builtins outputing function.Peter Stephenson1-4/+39
Also add to zed -f. Option is -x <numm>.
2015-06-0235353: print -x and print -X expand tabsPeter Stephenson1-0/+102
2015-05-1035067: Add (b) parameter flag for pattern char backslashing.Peter Stephenson1-4/+19
Doc tweak from Daniel in 35071. Includes test.
2015-05-0935064: rename ISPRINT to ZISPRINT to avoid conflictJun-ichi Takimoto1-2/+2
2015-03-0534636: replace broken isprint() on Mac OS XJun-ichi Takimoto1-2/+2
2015-02-2034587: ensure multibyte characters don't overflow.Peter Stephenson1-0/+8
They could start incorporating tokens, with bad karma. Add test.
2015-02-0934466: Fix double unmeta in rm verificationMikael Magnusson1-1/+1
2015-01-2634403: refine 34399 to avoid settyinfo() when the input descriptor is not a TTYBarton E. Schaefer1-2/+2
2015-01-2534399: fix polltty thinko from 34365Barton E. Schaefer1-1/+1
Also add missing ChangeLog entry for 34365.
2015-01-2534365: History lockfile backoff: randomised time.Peter Stephenson1-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.
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 Stephenson1-4/+7
Problem was return from symbolic link expander in weird cases where there file system isn't behaving itself properly.
2015-01-1834322: bug with interface to parsestr() etc.Peter Stephenson1-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.
2015-01-0634138: wcs_nicechar: only deref widthp if it was givenMikael Magnusson1-1/+1
2015-01-0634108: Don't leak ifs stuffMikael Magnusson1-2/+2
Found by Coverity (Issue 1255785).
2015-01-0434092: fix miscount of symlink resolution for "..".Peter Stephenson1-0/+2
This caused problems with expanding a path with ".." in "whence -S".
2015-01-0434091: typo with "whence -s" expansionsPeter Stephenson1-2/+2
2015-01-02users/19667: whence -S shows intermediate steps in symlink expansionPeter Stephenson1-7/+60