mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
add missing function crash test (re: 6193c6a3)
Of course I was wrong to say the bug had nothing to do with functions; traps in ksh functions are local, are handled the same way as traps that are local to virtual subshells, and had the same crashing bug. So this adds a test for that as well.
This commit is contained in:
parent
6193c6a3c5
commit
a5d38b1de7
2 changed files with 17 additions and 1 deletions
|
|
@ -852,7 +852,6 @@ actual=`get_value`
|
|||
|
||||
cat >$tmp/crash_rhbz1117404.ksh <<-'EOF'
|
||||
trap "" HUP # trigger part 1: signal ignored in main shell
|
||||
i=0
|
||||
for((i=0; i<2500; i++))
|
||||
do (trap ": foo" HUP) # trigger part 2: any trap (empty or not) on same signal in subshell
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue