summaryrefslogtreecommitdiff
path: root/Src/builtin.c
AgeCommit message (Collapse)AuthorFilesLines
2015-12-31unposted: enable WARN_CREATE_GLOBAL for print -vBarton E. Schaefer1-2/+2
2015-12-3137467: add "print -v var" / "printf -v var"Barton E. Schaefer1-9/+25
2015-12-0937364: "test" and "[" handling of parentheses.Peter Stephenson1-1/+7
If three arguments, need to prefer binary operators if possible. Need to look for full string for parentheses.
2015-11-2237187: infinite loop in "hash -m"Peter Stephenson1-0/+1
2015-11-2020974: Bug with scalar assignment to special array in typesetPeter Stephenson1-4/+20
2015-11-0837080: use paramtab abstraction more consistently, add explanatory commentsBarton E. Schaefer1-4/+7
2015-11-0137038: add -l option to emulate to list options in emulationsPeter Stephenson1-8/+25
2015-10-2937014: Improved internal parameter setting.Peter Stephenson1-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.
2015-08-2136256: local options should remain in effect for "emulate -L" even if ↵Barton E. Schaefer1-4/+7
additional option settings are applied
2015-08-2136262: Replace fix for missing unmeta in chdir().Peter Stephenson1-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.
2015-08-1836227: attempt to fix metafication problem with ztrftime.Peter Stephenson1-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.
2015-08-1036083: set array value when consistently retying scalar and arrayPeter Stephenson1-0/+2
2015-08-09Fix retying variables in opposite order.Peter Stephenson1-1/+3
Now gives an error. Add test.
2015-08-0836008: trap: Fix listing of traps created under non-alias non-canonical ↵Daniel Shahaf1-1/+7
signal spelling
2015-08-04unposted: Typo fix.Daniel Shahaf1-1/+1
2015-06-2735635: a bit more consistency about making elements localPeter Stephenson1-1/+1
2015-06-2735623: All is_array assignments should be treated as having a value.Peter Stephenson1-20/+26
2015-06-2635613: Handle array slices in typesetPeter Stephenson1-1/+8
2015-06-25typeset silent on repeated typeset x=()Peter Stephenson1-1/+2
2015-06-24various posts: Implement assignment parsing for typeset.Peter Stephenson1-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.
2015-06-12Add non-metafied character length handling.Peter Stephenson1-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.
2015-06-0735412: fix for - flag when formating strings with printfOliver Kiddle1-1/+1
2015-06-0635350: extend "fc -I" to cover listing of "internal" history events onlyBarton E. Schaefer1-10/+14
2015-06-0535386: expand tabs where useful in builtins outputing function.Peter Stephenson1-13/+37
Also add to zed -f. Option is -x <numm>.
2015-06-0235353: print -x and print -X expand tabsPeter Stephenson1-6/+35
2015-05-30users/20238: add "fc -L" to operate only on the local shell historyBarton E. Schaefer1-10/+13
Also avoid invoking the editor on empty results.
2015-05-2835318: POSIX_BUILTINS behaviour for getopts.Peter Stephenson1-0/+4
It needs to keep OPTIND, as well as the index within the string pointed to by OPTIND, global in this case.
2015-05-1835193: Add "unalias -a".Peter Stephenson1-7/+35
2015-05-14Øystein Walle: 34841 (tweaked): allow grouping of thousands in printf ↵Oliver Kiddle1-3/+3
format string
2015-05-1435110: don't implicitly initialize restricted integers to zeroPeter Stephenson1-1/+6
2015-05-13users/20203: nested functions in always blocks when exit pendingPeter Stephenson1-0/+6
2015-05-04Fix two bugs in typeset_setbaseMikael Magnusson1-3/+4
2015-04-2934992: POSIX fix for readonly variables.Peter Stephenson1-4/+33
With POSIXBUILTINS, variables can be marked readonly if unset. Also, variables can't have the readonly flag removed.
2015-04-0634851: fix thinko from 34093 that short-circuited some "whence -m" searchesBarton E. Schaefer1-5/+7
2015-02-1534551: Avoid adding an extra "/" to the target path in cd_try_chdir() when ↵Barton E. Schaefer1-2/+4
the current directory is "/"
2015-02-1034490: Fix leak on print -zf/-sf errorMikael Magnusson1-1/+17
2015-02-1034488: Fix use-after-free for print -zf and print -sfMikael Magnusson1-6/+12
2015-01-2234331: better handling of NULL in cd.Peter Stephenson1-3/+5
Problem was return from symbolic link expander in weird cases where there file system isn't behaving itself properly.
2015-01-2034329: add -S option to which and wherePeter Stephenson1-2/+2
2015-01-1034213: in previous patch, do not change usepm if it is already setBarton E. Schaefer1-1/+1
2015-01-1034212: do not change unset-ness of special parameters when exporting themBarton E. Schaefer1-2/+6
2015-01-09Rearrange context saving.Peter Stephenson1-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.
2015-01-09Fix a typo in bin_print error messageMikael Magnusson1-3/+3
2015-01-0734154/34155: reorder bin_print() to avoid leaking the output descriptor when ↵Barton E. Schaefer1-29/+34
incorrect/incompatible options were passed
2015-01-0634112: typeset: fix leak of oldvalMikael Magnusson1-0/+2
Found by Coverity (Issue 1255803).
2015-01-0634113: whence: use dupstring to not leak memoryMikael Magnusson1-1/+1
All other assignments to buf use the heap, and it's never freed. Found by Coverity (Issue 1255786).
2015-01-0634114: emulate: Handle aborting from mixed -L/-c correctlyMikael Magnusson1-1/+2
Somehow Coverity found this (Issue 1255797, Failure to restore non-local value).
2015-01-0634093: "whence" should always return nonzero when it finds that nothing ↵Barton E. Schaefer1-15/+17
matches its arguments
2015-01-02users/19671: remove confusion with whence -a.Peter Stephenson1-1/+1
If the argument is a full path don't try to search the path for it.
2015-01-02users/19667: whence -S shows intermediate steps in symlink expansionPeter Stephenson1-6/+6