readline fix for rl_undo_list pointer aliasing; arith command sets word_top

This commit is contained in:
Chet Ramey
2023-03-06 10:50:45 -05:00
parent 0bd0fb5966
commit 277c21d2b2
14 changed files with 414 additions and 32 deletions
+23
View File
@@ -166,4 +166,27 @@ after FUNCNEST unset: f = 201
./func4.sub: line 23: foo: maximum function nesting level exceeded (20)
1
after FUNCNEST assign: f = 38
11111 ()
{
printf "FUNCNAME: %s\n" $FUNCNAME
}
function a=2 ()
{
printf "FUNCNAME: %s\n" $FUNCNAME
}
function 11111 ()
{
printf "FUNCNAME: %s\n" $FUNCNAME
}
function a=2 ()
{
printf "FUNCNAME: %s\n" $FUNCNAME
}
FUNCNAME: a=2
break is a function
break ()
{
echo FUNCNAME: $FUNCNAME
}
FUNCNAME: break
5