Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
alarm: don't save sh.ifstable (re: 18b3f4a)
It is not correct to save sh.ifstable (a.k.a. shp->ifstable) before calling a function and then restore it after; this can cause field splitting to malfunction. See 70368c5. The change to init.c in the Red Hat patch applied in 18b3f4a (shp->ifstable[0] = S_EOF) appears to be sufficient. src/cmd/ksh93/bltins/alarm.c: - Revert save/restore of sh.ifstable. src/cmd/ksh93/tests/builtins.sh: - Tweak the regression test to work correctly on a slower machine, i.e. a Raspberry Pi running FreeBSD 12.2 arm64 (thanks to hyenias for providing testing access).
- Loading branch information