mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
Modernish is no longer detecting BUG_KUNSETIFS, as I've just discovered. Always nice when bugs spontaneously vanish... A 'git reset HEAD~1'/recompile/retest loop reveals this bug was fixed by6f0e008c
, as later modified by7b994b6a
. So, let's make sure it stays fixed. src/cmd/ksh93/tests/variables.sh: - Add a couple of regression tests for BUG_KUNSETIFS presence, detection and known workaround, based on the same in modernish. Ref.:3ddcbd13/lib/modernish/cap/BUG_KUNSETIFS.t
3ddcbd13/lib/modernish/tst/isset.t (L204-L222)
This commit is contained in:
parent
43c09c2d6f
commit
2315f6687a
3 changed files with 28 additions and 6 deletions
2
NEWS
2
NEWS
|
@ -180,6 +180,8 @@ Any uppercase BUG_* names are modernish shell bug IDs.
|
|||
etc. to lose their effect after being unset in a subshell. For example:
|
||||
(unset PATH; PATH=/dev/null; ls); : wrongly ran 'ls'
|
||||
(unset LC_ALL; LC_ALL=badlocale); : failed to print a diagnostic
|
||||
This also fixes BUG_KUNSETIFS: unsetting IFS in a subshell failed if IFS
|
||||
was set to the empty value in the parent shell.
|
||||
|
||||
- Fix crashes on some systems, including at least a crash in 'print -v' on
|
||||
macOS, by eliminating an invalid/undefined use of memccpy() on overlapping
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue