mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-05-27 10:26:05 +02:00
print at least a warning when disowning a stopped job (14524)
This commit is contained in:
parent
c58a4e7e28
commit
1bb5d5aeb5
|
@ -1,3 +1,8 @@
|
|||
2001-05-29 Sven Wischnowsky <wischnow@zsh.org>
|
||||
|
||||
* 14524: Src/jobs.c: print at least a warning when disowning a
|
||||
stopped job
|
||||
|
||||
2001-05-28 Clint Adams <schizo@debian.org>
|
||||
|
||||
* 14517: Src/Builtins/rlimits.awk: fix glibc2.2.3
|
||||
|
|
|
@ -1392,6 +1392,14 @@ bin_fg(char *name, char **argv, char *ops, int func)
|
|||
printjob(job + jobtab, lng, 2);
|
||||
break;
|
||||
case BIN_DISOWN:
|
||||
if (jobtab[job].stat & STAT_STOPPED)
|
||||
zwarnnam(name,
|
||||
#ifdef USE_SUSPENDED
|
||||
"warning: job is suspended",
|
||||
#else
|
||||
"warning: job is stopped",
|
||||
#endif
|
||||
NULL, 0);
|
||||
deletejob(jobtab + job);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue