From b41c26d78ab813debcba35478f0a97468233570c Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sun, 31 Aug 2008 16:01:10 +0000 Subject: 25570: line numbers of complex sublists were wrong, plus test make lineno zlong in another place --- Src/exec.c | 2 +- Src/zsh.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Src') diff --git a/Src/exec.c b/Src/exec.c index e9f4bc1e8..06f08ffb8 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -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]); } diff --git a/Src/zsh.h b/Src/zsh.h index ca49c695c..011aa3634 100644 --- a/Src/zsh.h +++ b/Src/zsh.h @@ -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 */ }; -- cgit v1.2.3