summary refs log tree commit diff
path: root/Src/builtin.c
Commit message (Collapse)AuthorAgeFilesLines
* 37187: infinite loop in "hash -m"Peter Stephenson2015-11-221-0/+1
|
* 20974: Bug with scalar assignment to special array in typesetPeter Stephenson2015-11-201-4/+20
|
* 37080: use paramtab abstraction more consistently, add explanatory commentsBarton E. Schaefer2015-11-081-4/+7
|
* 37038: add -l option to emulate to list options in emulationsPeter Stephenson2015-11-011-8/+25
|
* 37014: Improved internal parameter setting.Peter Stephenson2015-10-291-16/+22
| | | | | | | | Enhance WARNCREATEGLOBAL to work in many more cases. Don't create REPLY as an integer if it didn't previously exist as one, even if the value to be set is integral, as this is likely to mess up later uses of REPLY.
* 36256: local options should remain in effect for "emulate -L" even if ↵Barton E. Schaefer2015-08-211-4/+7
| | | | additional option settings are applied
* 36262: Replace fix for missing unmeta in chdir().Peter Stephenson2015-08-211-1/+1
| | | | | | | 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-2/+5
| | | | | fmt is treated as metafied on entry; use returned length to ensure we metafy or output the correct length if there are embedded nulls.
* 36083: set array value when consistently retying scalar and arrayPeter Stephenson2015-08-101-0/+2
|
* Fix retying variables in opposite order.Peter Stephenson2015-08-091-1/+3
| | | | | Now gives an error. Add test.
* 36008: trap: Fix listing of traps created under non-alias non-canonical ↵Daniel Shahaf2015-08-081-1/+7
| | | | signal spelling
* unposted: Typo fix.Daniel Shahaf2015-08-041-1/+1
|
* 35635: a bit more consistency about making elements localPeter Stephenson2015-06-271-1/+1
|
* 35623: All is_array assignments should be treated as having a value.Peter Stephenson2015-06-271-20/+26
|
* 35613: Handle array slices in typesetPeter Stephenson2015-06-261-1/+8
|
* typeset silent on repeated typeset x=()Peter Stephenson2015-06-251-1/+2
|
* various posts: Implement assignment parsing for typeset.Peter Stephenson2015-06-241-85/+224
| | | | | | | | | | | | Typeset assignments now work like raw assignments except for no "+=" and no GLOB_ASSIGN. Documented in typeset builtin doc and mentioned in release notes. Tests to ensure basic sanity. Enabled by default, can be turned off by "disable -r" with typeset family of commands.
* Add non-metafied character length handling.Peter Stephenson2015-06-121-2/+2
| | | | | | | Use this in regex module and add test using $'\ua0'. Rename mb_metacharinit() to mb_charinit() as it does not involve metafied characters.
* 35412: fix for - flag when formating strings with printfOliver Kiddle2015-06-071-1/+1
|
* 35350: extend "fc -I" to cover listing of "internal" history events onlyBarton E. Schaefer2015-06-061-10/+14
|
* 35386: expand tabs where useful in builtins outputing function.Peter Stephenson2015-06-051-13/+37
| | | | | | Also add to zed -f. Option is -x <numm>.
* 35353: print -x and print -X expand tabsPeter Stephenson2015-06-021-6/+35
|
* users/20238: add "fc -L" to operate only on the local shell historyBarton E. Schaefer2015-05-301-10/+13
| | | | Also avoid invoking the editor on empty results.
* 35318: POSIX_BUILTINS behaviour for getopts.Peter Stephenson2015-05-281-0/+4
| | | | | It needs to keep OPTIND, as well as the index within the string pointed to by OPTIND, global in this case.
* 35193: Add "unalias -a".Peter Stephenson2015-05-181-7/+35
|
* Øystein Walle: 34841 (tweaked): allow grouping of thousands in printf ↵Oliver Kiddle2015-05-141-3/+3
| | | | format string
* 35110: don't implicitly initialize restricted integers to zeroPeter Stephenson2015-05-141-1/+6
|
* users/20203: nested functions in always blocks when exit pendingPeter Stephenson2015-05-131-0/+6
|
* Fix two bugs in typeset_setbaseMikael Magnusson2015-05-041-3/+4
|
* 34992: POSIX fix for readonly variables.Peter Stephenson2015-04-291-4/+33
| | | | | With POSIXBUILTINS, variables can be marked readonly if unset. Also, variables can't have the readonly flag removed.
* 34851: fix thinko from 34093 that short-circuited some "whence -m" searchesBarton E. Schaefer2015-04-061-5/+7
|
* 34551: Avoid adding an extra "/" to the target path in cd_try_chdir() when ↵Barton E. Schaefer2015-02-151-2/+4
| | | | the current directory is "/"
* 34490: Fix leak on print -zf/-sf errorMikael Magnusson2015-02-101-1/+17
|
* 34488: Fix use-after-free for print -zf and print -sfMikael Magnusson2015-02-101-6/+12
|
* 34331: better handling of NULL in cd.Peter Stephenson2015-01-221-3/+5
| | | | | 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 wherePeter Stephenson2015-01-201-2/+2
|
* 34213: in previous patch, do not change usepm if it is already setBarton E. Schaefer2015-01-101-1/+1
|
* 34212: do not change unset-ness of special parameters when exporting themBarton E. Schaefer2015-01-101-2/+6
|
* Rearrange context saving.Peter Stephenson2015-01-091-4/+4
| | | | | | | 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 messageMikael Magnusson2015-01-091-3/+3
|
* 34154/34155: reorder bin_print() to avoid leaking the output descriptor when ↵Barton E. Schaefer2015-01-071-29/+34
| | | | incorrect/incompatible options were passed
* 34112: typeset: fix leak of oldvalMikael Magnusson2015-01-061-0/+2
| | | | Found by Coverity (Issue 1255803).
* 34113: whence: use dupstring to not leak memoryMikael Magnusson2015-01-061-1/+1
| | | | | All other assignments to buf use the heap, and it's never freed. Found by Coverity (Issue 1255786).
* 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).
* 34093: "whence" should always return nonzero when it finds that nothing ↵Barton E. Schaefer2015-01-061-15/+17
| | | | matches its arguments
* 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-021-6/+6
|
* 33984: bin_dirs() should use zputs() to print metafied directory namesJun Kuriyama2014-12-161-1/+1
|
* 33876: etc.: Separate errors and keyboards interruptsPeter Stephenson2014-12-111-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* 33656: different algorithm for "whence -am" to produce results more ↵Barton E. Schaefer2014-11-131-44/+30
| | | | | | | | consistent with "whence -m" This uses the scanmatchtable routine to collect the names that match the input pattern, then uses the original -a path search loop to generate the output, to avoid duplicating test conditions and output formats.