mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 16:50:58 +01:00
users/13295, tweaked: dont reset line numbers when parsing strings, sometimes
This commit is contained in:
parent
dd3a749ce9
commit
59dd1491c6
8 changed files with 25 additions and 14 deletions
|
|
@ -4781,7 +4781,7 @@ bin_eval(UNUSED(char *nam), char **argv, UNUSED(Options ops), UNUSED(int func))
|
|||
} else
|
||||
fpushed = 0;
|
||||
|
||||
prog = parse_string(zjoin(argv, ' ', 1));
|
||||
prog = parse_string(zjoin(argv, ' ', 1), 1);
|
||||
if (prog) {
|
||||
if (wc_code(*prog->prog) != WC_LIST) {
|
||||
/* No code to execute */
|
||||
|
|
@ -5781,7 +5781,7 @@ bin_trap(char *name, char **argv, UNUSED(Options ops), UNUSED(int func))
|
|||
arg = *argv++;
|
||||
if (!*arg)
|
||||
prog = &dummy_eprog;
|
||||
else if (!(prog = parse_string(arg))) {
|
||||
else if (!(prog = parse_string(arg, 1))) {
|
||||
zwarnnam(name, "couldn't parse trap command");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue