Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add non-metafied character length handling. | Peter Stephenson | 2015-06-12 | 1 | -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 printf | Oliver Kiddle | 2015-06-07 | 1 | -1/+1 |
| | |||||
* | 35350: extend "fc -I" to cover listing of "internal" history events only | Barton E. Schaefer | 2015-06-06 | 1 | -10/+14 |
| | |||||
* | 35386: expand tabs where useful in builtins outputing function. | Peter Stephenson | 2015-06-05 | 1 | -13/+37 |
| | | | | | | Also add to zed -f. Option is -x <numm>. | ||||
* | 35353: print -x and print -X expand tabs | Peter Stephenson | 2015-06-02 | 1 | -6/+35 |
| | |||||
* | users/20238: add "fc -L" to operate only on the local shell history | Barton E. Schaefer | 2015-05-30 | 1 | -10/+13 |
| | | | | Also avoid invoking the editor on empty results. | ||||
* | 35318: POSIX_BUILTINS behaviour for getopts. | Peter Stephenson | 2015-05-28 | 1 | -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 Stephenson | 2015-05-18 | 1 | -7/+35 |
| | |||||
* | Øystein Walle: 34841 (tweaked): allow grouping of thousands in printf ↵ | Oliver Kiddle | 2015-05-14 | 1 | -3/+3 |
| | | | | format string | ||||
* | 35110: don't implicitly initialize restricted integers to zero | Peter Stephenson | 2015-05-14 | 1 | -1/+6 |
| | |||||
* | users/20203: nested functions in always blocks when exit pending | Peter Stephenson | 2015-05-13 | 1 | -0/+6 |
| | |||||
* | Fix two bugs in typeset_setbase | Mikael Magnusson | 2015-05-04 | 1 | -3/+4 |
| | |||||
* | 34992: POSIX fix for readonly variables. | Peter Stephenson | 2015-04-29 | 1 | -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" searches | Barton E. Schaefer | 2015-04-06 | 1 | -5/+7 |
| | |||||
* | 34551: Avoid adding an extra "/" to the target path in cd_try_chdir() when ↵ | Barton E. Schaefer | 2015-02-15 | 1 | -2/+4 |
| | | | | the current directory is "/" | ||||
* | 34490: Fix leak on print -zf/-sf error | Mikael Magnusson | 2015-02-10 | 1 | -1/+17 |
| | |||||
* | 34488: Fix use-after-free for print -zf and print -sf | Mikael Magnusson | 2015-02-10 | 1 | -6/+12 |
| | |||||
* | 34331: better handling of NULL in cd. | Peter Stephenson | 2015-01-22 | 1 | -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 where | Peter Stephenson | 2015-01-20 | 1 | -2/+2 |
| | |||||
* | 34213: in previous patch, do not change usepm if it is already set | Barton E. Schaefer | 2015-01-10 | 1 | -1/+1 |
| | |||||
* | 34212: do not change unset-ness of special parameters when exporting them | Barton E. Schaefer | 2015-01-10 | 1 | -2/+6 |
| | |||||
* | Rearrange context saving. | Peter Stephenson | 2015-01-09 | 1 | -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 message | Mikael Magnusson | 2015-01-09 | 1 | -3/+3 |
| | |||||
* | 34154/34155: reorder bin_print() to avoid leaking the output descriptor when ↵ | Barton E. Schaefer | 2015-01-07 | 1 | -29/+34 |
| | | | | incorrect/incompatible options were passed | ||||
* | 34112: typeset: fix leak of oldval | Mikael Magnusson | 2015-01-06 | 1 | -0/+2 |
| | | | | Found by Coverity (Issue 1255803). | ||||
* | 34113: whence: use dupstring to not leak memory | Mikael Magnusson | 2015-01-06 | 1 | -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 correctly | Mikael Magnusson | 2015-01-06 | 1 | -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. Schaefer | 2015-01-06 | 1 | -15/+17 |
| | | | | matches its arguments | ||||
* | users/19671: remove confusion with whence -a. | Peter Stephenson | 2015-01-02 | 1 | -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 expansion | Peter Stephenson | 2015-01-02 | 1 | -6/+6 |
| | |||||
* | 33984: bin_dirs() should use zputs() to print metafied directory names | Jun Kuriyama | 2014-12-16 | 1 | -1/+1 |
| | |||||
* | 33876: etc.: Separate errors and keyboards interrupts | Peter Stephenson | 2014-12-11 | 1 | -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. Schaefer | 2014-11-13 | 1 | -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. | ||||
* | Handle -a option to whence in combination with -m. | Peter Stephenson | 2014-11-08 | 1 | -5/+41 |
| | |||||
* | 33429: disallow non-integer values for HISTSIZE and SAVEHIST of "fc -p", and ↵ | Barton E. Schaefer | 2014-10-10 | 1 | -4/+13 |
| | | | | fix crash on zero values for same | ||||
* | 33323: fix bug in removing math functions and complete -M option to functions | Oliver Kiddle | 2014-10-02 | 1 | -1/+3 |
| | |||||
* | 32918: add %. to ztrftime for use in prompts | Peter Stephenson | 2014-07-30 | 1 | -1/+1 |
| | |||||
* | unposted (see 32892): 'fc -I' is an error | Barton E. Schaefer | 2014-07-24 | 1 | -0/+4 |
| | |||||
* | 32624: use correct scaling factor (clock ticks) for times | Peter Stephenson | 2014-05-29 | 1 | -2/+4 |
| | |||||
* | 32479: POSIXTRAPS and implicit return values. | Peter Stephenson | 2014-03-14 | 1 | -2/+9 |
| | | | | | | With POSIXTRAPS never propagate implicit return value. In any case if not forcing a return value don't use lastval from within the trap, use the one from the surrounding code. | ||||
* | 32246: option "shift -p" pops arguments from end of array | Peter Stephenson | 2014-01-11 | 1 | -6/+25 |
| | |||||
* | 31706: standardize handling of "test ! <x> <y> <z>" | Peter Stephenson | 2013-09-06 | 1 | -3/+10 |
| | |||||
* | 31637: be more selective about retry of lchdir() in cd_do_chdir() | Barton E. Schaefer | 2013-08-18 | 1 | -1/+2 |
| | | | | | | Change of directory should not be retried relative to the current directory when it has already failed along some path that does not refer to the current directory. | ||||
* | 31631: Use cygwin_conv_path if available. | Peter Stephenson | 2013-08-05 | 1 | -0/+5 |
| | | | | Prefer it to cygwin_conv_to_posix_path. | ||||
* | 17591: fix error message for invalid fd in print -u | Peter Stephenson | 2013-07-29 | 1 | -8/+8 |
| | |||||
* | 31444: Basic code for enable/disable -p | Peter Stephenson | 2013-06-13 | 1 | -4/+16 |
| | |||||
* | upon "read" of a short line, assign all variables passed as arguments. | Barton Schaefer | 2013-05-20 | 1 | -1/+1 |
| | | | | | It was noted that (print 1 2 | read one two three four) assigned values only to $one and $two except in the case where EOF was reached. | ||||
* | users/17754: failing to retie an array | Peter Stephenson | 2013-04-10 | 1 | -1/+1 |
| | | | | and colon-separated scalar shouldn't be a fatal error | ||||
* | 31060:"+" before a flag for "functions" or | Peter Stephenson | 2013-02-22 | 1 | -4/+9 |
| | | | | "autoload" should suppress display of function body. | ||||
* | unposted: tweak 30949 to fix buffer pointer | Bart Schaefer | 2013-01-08 | 1 | -2/+1 |
| |