mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
Fix two problems with 'unset -f' behavior (#22)
src/cmd/ksh93/sh/name.c: - Correct the check for when a function is currently running to fix a segmentation fault that occurred when a POSIX function tries to unset itself while it is running. This bug fix was backported from ksh93v-. src/cmd/ksh93/sh/xec.c: - If a function tries to unset itself, unset the function with '_nv_unset(np, NV_RDONLY)' to fix a silent failure. This fix was also backported from ksh93v-. src/cmd/ksh93/tests/functions.sh: - Add four regression tests for when a function unsets itself. Resolves #21
This commit is contained in:
parent
746ce73671
commit
b7932e87b6
5 changed files with 25 additions and 2 deletions
9
NEWS
9
NEWS
|
@ -3,6 +3,15 @@ For full details, see the git log at: https://github.com/ksh93/ksh
|
|||
|
||||
Any uppercase BUG_* names are modernish shell bug IDs.
|
||||
|
||||
2020-06-17:
|
||||
|
||||
- A POSIX function that unsets itself while it is running no longer causes
|
||||
a segmentation fault.
|
||||
|
||||
- `unset -f` no longer silently fails when a KornShell style function tries
|
||||
to unset itself while it is running. The function will now be unset once
|
||||
it has finished running.
|
||||
|
||||
2020-06-16:
|
||||
|
||||
- Passing the '-d' flag to the read builtin will no longer cause the '-r'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue