Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 52244: Fix a batch of minor defects reported by Coverity. | Bart Schaefer | 2023-10-26 | 1 | -1/+3 |
| | | | | | | Coverity defects 1547831, 1547826 (remove unused function), 1521551, 1500752, 1500747, 1401549, 1372423, 1270645, 1255799, 1255792, 1255789, 1255787, 1255782, 1255750 | ||||
* | 51945: assorted documentation improvements, bug fixes, and new test | Bart Schaefer | 2023-07-26 | 1 | -9/+32 |
| | | | | | | | | | | | | | | 1) Document the behavior of "typeset -n existing_var" (via Jun T. comment) 2) Prohibit "typeset -nm pattern" because, well, it's insane. Add test. 3) Improve doc for ${(!)ref} including ${{t!)ref} (Jun T.) 4) Fix doc for how-to unset of a named ref (Jun T.) 5) Allow "typeset +r -n ref" and "typeset +r +n ref" (Jun T.) 6) Fix "typeset -r -n ref=param" to create readonly references 7) Avoid accidental removal of PM_UNSET flag (Jun T.) and update test 8) Fix "typeset -gn ref=value" and add a test for it 9) Add tests for read-only reference behavior 10) Fix infinite recursion when resolving scope of an unset local named reference, add test. | ||||
* | 51969: read -d and -s should not reset terminal state when stdin is redirected | Bart Schaefer | 2023-07-26 | 1 | -3/+3 |
| | |||||
* | 51890: fix "whence -wa" for multiple arguments | Bart Schaefer | 2023-07-09 | 1 | -0/+1 |
| | |||||
* | 58586: print "%s" with invalid multibyte character | Peter Stephenson | 2023-03-22 | 1 | -13/+14 |
| | | | | Treat each byte that is invalid or part of an incopmlete set as a single byte. | ||||
* | 51573: additional "typset -p -m" fix for namespaces | Bart Schaefer | 2023-03-14 | 1 | -3/+5 |
| | | | | | | | | The "-m pattern" option is supposed to enable printing namespaces, but that didn't work when combined with -p. The -p option could also cause an unset parameter to become set if a named reference pointed at it. | ||||
* | 51510: Skip namespaces in "set"/"typeset" output, add tests, fix bug | Bart Schaefer | 2023-03-06 | 1 | -4/+10 |
| | |||||
* | 51431: "typeset -p" shouldn't change parameter flags | Bart Schaefer | 2023-02-20 | 1 | -13/+33 |
| | |||||
* | 51430: Misc. problems with typeset and $parameters | Bart Schaefer | 2023-02-13 | 1 | -6/+10 |
| | | | | | | * Fix and test for regression of assignment when using typeset command * Fix output of typeset +m and $parameters[ref] * Prevent segfault in typeset | ||||
* | 51402: Some ksh/bash features, additional sanity checking | Bart Schaefer | 2023-02-12 | 1 | -12/+37 |
| | | | | | | | | | | | | * Add "unset -n" * Allow and enforce "typeset -n -r" for read-only references * "can't change type via subscript reference" error * Better checking for self-referential declarations/assignments * Ksh-style "foo=bar; typeset -n foo" creates foo=bar reference * Support "typeset -n ref; for ref in ..." * Subscripted references use NO_EXEC for safety * References assigned in called scopes reset scope at end * Allow named references to $! $? $$ $- $0 $_ | ||||
* | 51360: Initial implementation of named references. | Bart Schaefer | 2023-02-12 | 1 | -4/+52 |
| | |||||
* | 51258, 51272: refactor handling of terminal attributes, removing OFF flags ↵ | Oliver Kiddle | 2023-01-10 | 1 | -1/+3 |
| | | | | in zattr | ||||
* | 51214: handle read -d and a delimiter that can't be decoded into a character | Oliver Kiddle | 2022-12-17 | 1 | -2/+5 |
| | | | | | | Terminate input at the raw byte value of the delimiter. Also document and test the use of an empty string as a way to specify NUL as the delimiter. | ||||
* | 51207: fix for read -d when the delimiter is a byte >= 0x80 | Jun-ichi Takimoto | 2022-12-17 | 1 | -3/+4 |
| | |||||
* | 51212: remove STOUC() macro | Oliver Kiddle | 2022-12-16 | 1 | -10/+10 |
| | | | | | This served as a workaround for ancient compilers where casts to unsigned char were broken. | ||||
* | 50359: fix bad sticky-emulation in "functions -c" | Matthew Martin | 2022-06-09 | 1 | -1/+1 |
| | |||||
* | 50351: "functions -c" can set signal traps | Bart Schaefer | 2022-06-09 | 1 | -1/+16 |
| | |||||
* | 50149: Remove all remaining =(...) files at shell exit | Bart Schaefer | 2022-04-30 | 1 | -0/+1 |
| | |||||
* | 50068: 'exit' in trap causes calling function to return | Bart Schaefer | 2022-04-14 | 1 | -0/+2 |
| | |||||
* | 49534, 49539: separate watch/log functionality out into a module | Oliver Kiddle | 2021-11-02 | 1 | -1/+0 |
| | |||||
* | unposted: add/remove UNUSED() for some function parameters | Jun-ichi Takimoto | 2021-09-08 | 1 | -1/+1 |
| | |||||
* | 49069: literal interpretation of subscripts for unset of array/hash elements | Bart Schaefer | 2021-06-13 | 1 | -4/+2 |
| | |||||
* | 48857: declare "volatile" all globals that may be modified by signal handlers | Bart Schaefer | 2021-05-16 | 1 | -9/+7 |
| | |||||
* | users/26742: break out of surrounding shell loops when exit is called from ↵ | Peter Stephenson | 2021-05-15 | 1 | -1/+4 |
| | | | | an exit hook | ||||
* | 48614: getopts: Calculate OPTIND according to POSIX_BUILTINS | dana | 2021-05-03 | 1 | -0/+10 |
| | |||||
* | 47704: POSIX export and readonly ignore "-p" when parameter names also appear | Bart Schaefer | 2021-04-18 | 1 | -2/+6 |
| | |||||
* | 48560: add TYPESET_TO_UNSET option to remove initialization of parameters | Bart Schaefer | 2021-04-18 | 1 | -3/+11 |
| | | | | | | | | | | Changes typeset such that ${newparam-notset} yields "notset" and "typeset -p newparam" does not show an assignment to the parameter. This is similar to the default behavior of bash and ksh, with minor differences in typeset output. Also add tests for some POSIX incompatibilities plus minor changes for test harness robustness. | ||||
* | users/26509: fix for r -L | Peter Stephenson | 2021-02-18 | 1 | -2/+3 |
| | | | | | fc with the -L option should ignore remote entires, rather than reading them and treating them as an error. | ||||
* | 48073: Add fc -s as POSIX way of rerunning command without starting editor | Martijn Dekker | 2021-02-17 | 1 | -2/+2 |
| | |||||
* | 47895: Remove trailing spaces from "print -ac" output lines. | Bart Schaefer | 2021-02-04 | 1 | -1/+1 |
| | |||||
* | 47301: Fix print -v metafication | Jun-ichi Takimoto | 2020-10-25 | 1 | -1/+1 |
| | |||||
* | 46168: Update $PWD and call chpwd hook after normalizing path | Matthew Martin | 2020-07-03 | 1 | -18/+17 |
| | |||||
* | typeset: Fix leaving corrupted entries in paramtab | Mikael Magnusson | 2020-06-05 | 1 | -3/+9 |
| | |||||
* | 45729: internal: Add a second parameter to zlinklist2array(), analogously to ↵ | Daniel Shahaf | 2020-05-03 | 1 | -5/+5 |
| | | | | | | hlinklist2array(). Will be used in the next commit. | ||||
* | 45660: Fix crash setting vi or emacs mode on command line. | Peter Stephenson | 2020-04-09 | 1 | -1/+1 |
| | | | | Delay setting the option until the module system is set up. | ||||
* | 45487: Missing mod_export declarations for AIX | Peter Stephenson | 2020-02-24 | 1 | -1/+1 |
| | |||||
* | 45302: bin_umask(): Queue signals around umask(). | Daniel Shahaf | 2020-01-15 | 1 | -1/+4 |
| | | | | | Otherwise, a signal handler might create files while the temporary umask is in effect. | ||||
* | 45066: internal: Document forklevel, locallevel, and exit_pending. | Daniel Shahaf | 2019-12-18 | 1 | -1/+5 |
| | |||||
* | 45058: internal: Add symbolic names to possible values of zexit()'s ↵ | Daniel Shahaf | 2019-12-17 | 1 | -11/+13 |
| | | | | "from_where" parameter. No functional change. | ||||
* | unposted: Update comment to reflect variable rename in 41012 (= ↵ | Daniel Shahaf | 2019-12-17 | 1 | -1/+1 |
| | | | | zsh-5.3.1-182-gd7110d8f0). | ||||
* | 45009: POSIX_CD needs to suppress some forms of option. | Peter Stephenson | 2019-12-12 | 1 | -1/+1 |
| | | | | | Otherwise forms of argument allowed by POSIX are interpreted as options instead. | ||||
* | 45004: Fix typos in comments | Martijn Dekker | 2019-12-11 | 1 | -2/+2 |
| | |||||
* | unposted: functions -c: Fix typo | Daniel Shahaf | 2019-10-10 | 1 | -1/+1 |
| | |||||
* | Copy functions using functions -c old new. | Peter Stephenson | 2019-08-03 | 1 | -2/+41 |
| | | | | Documentation and test. | ||||
* | 44502: Quote function name for "autoload -X" | Bart Schaefer | 2019-07-08 | 1 | -1/+1 |
| | |||||
* | 44469: correct error on missing option argument | Martijn Dekker | 2019-07-01 | 1 | -5/+12 |
| | |||||
* | 44443: POSIX allows exporting readonly variables | Martijn Dekker | 2019-06-23 | 1 | -1/+1 |
| | |||||
* | 44284: combination of -T and -p to typeset crashed the shell. | Oliver Kiddle | 2019-05-14 | 1 | -4/+2 |
| | |||||
* | 44291: printf with argument specifier out of range for an int crashed the shell | Oliver Kiddle | 2019-05-14 | 1 | -2/+1 |
| | |||||
* | 44198: Add cd_silent option to suppress all cd output | dana | 2019-04-12 | 1 | -2/+2 |
| |