1
0
Fork 0
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:
Peter Stephenson 2008-08-31 16:01:10 +00:00
parent d19602a65a
commit b41c26d78a
4 changed files with 18 additions and 2 deletions

View file

@ -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