1
0
Fork 0
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:
Sven Wischnowsky 2001-05-29 09:49:58 +00:00
parent c58a4e7e28
commit 1bb5d5aeb5
2 changed files with 13 additions and 0 deletions

View File

@ -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

View File

@ -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;
}