mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-13 11:42:21 +00:00
Fix resuming external command run from 'eval' (re: 2c35a539
)
'eval' suffers from the same bug. Reproducer: $ eval vi then suspend vi, then try to resume it -- the same as in the reproducer shown in the previous commit. src/cmd/ksh93/bltins/misc.c: b_eval(): - Same fix. Do *not* turn off SH_MONITOR.
This commit is contained in:
parent
2c35a53964
commit
7259153f1a
2 changed files with 1 additions and 4 deletions
2
NEWS
2
NEWS
|
@ -7,7 +7,7 @@ Any uppercase BUG_* names are modernish shell bug IDs.
|
||||||
|
|
||||||
- Fixed longstanding job control breakage that occurred on the interactive
|
- Fixed longstanding job control breakage that occurred on the interactive
|
||||||
shell when suspending (Ctrl+Z) an external command invoked by a dot script
|
shell when suspending (Ctrl+Z) an external command invoked by a dot script
|
||||||
or POSIX shell function.
|
or POSIX shell function, or via 'eval'.
|
||||||
|
|
||||||
2022-01-26:
|
2022-01-26:
|
||||||
|
|
||||||
|
|
|
@ -209,10 +209,7 @@ int b_eval(int argc,char *argv[], Shbltin_t *context)
|
||||||
}
|
}
|
||||||
argv += opt_info.index;
|
argv += opt_info.index;
|
||||||
if(*argv && **argv)
|
if(*argv && **argv)
|
||||||
{
|
|
||||||
sh_offstate(SH_MONITOR);
|
|
||||||
sh_eval(sh_sfeval(argv),0);
|
sh_eval(sh_sfeval(argv),0);
|
||||||
}
|
|
||||||
return(sh.exitval);
|
return(sh.exitval);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue