1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-11-01 06:20:55 +01: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

@ -1060,7 +1060,7 @@ execlist(Estate state, int dont_change_job, int exiting)
lnp1 = code2;
} else if (wc_code(code2) == WC_SUBLIST) {
if (WC_SUBLIST_FLAGS(code2) == WC_SUBLIST_SIMPLE)
lnp1 = state->pc[2];
lnp1 = state->pc[1];
else
lnp1 = WC_PIPE_LINENO(state->pc[1]);
}

View file

@ -1063,7 +1063,7 @@ struct cmdnam {
struct shfunc {
struct hashnode node;
char *filename; /* Name of file located in */
int lineno; /* line number in above file */
zlong lineno; /* line number in above file */
Eprog funcdef; /* function definition */
};