mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-23 04:30:24 +02:00
25570: line numbers of complex sublists were wrong, plus test
make lineno zlong in another place
This commit is contained in:
parent
d19602a65a
commit
b41c26d78a
4 changed files with 18 additions and 2 deletions
|
@ -429,6 +429,16 @@
|
|||
1:Skip assignment from DEBUG trap
|
||||
>5 three
|
||||
|
||||
fn() {
|
||||
setopt localtraps localoptions debugbeforecmd
|
||||
trap 'print $LINENO' DEBUG
|
||||
[[ a = a ]] && print a is ok
|
||||
}
|
||||
fn
|
||||
0:line numbers of complex sublists
|
||||
>3
|
||||
>a is ok
|
||||
|
||||
%clean
|
||||
|
||||
rm -f TRAPEXIT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue