1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-09-28 15:01:21 +02:00

fix error message

This commit is contained in:
Peter Stephenson 2006-11-06 12:49:20 +00:00
parent a519a6d15c
commit da0dfc62df
3 changed files with 7 additions and 2 deletions

@ -1,3 +1,8 @@
2006-11-06 Peter Stephenson <pws@csr.com>
* 22971: Src/exec.c, Src/jobs.c: don't allow job control
on jobs in current shell and sanitize error message used.
2006-11-05 Peter Stephenson <p.w.stephenson@ntlworld.com>
* 22968: Src/builtins.c: print -z and print -s didn't cope

@ -2265,7 +2265,7 @@ execcmd(Estate state, int input, int output, int how, int last1)
/* This is a current shell procedure that didn't need to fork. *
* This includes current shell procedures that are being exec'ed, *
* as well as null execs. */
jobtab[thisjob].stat |= STAT_CURSH;
jobtab[thisjob].stat |= STAT_CURSH|STAT_NOPRINT;
} else {
/* This is an exec (real or fake) for an external command. *
* Note that any form of exec means that the subshell is fake *

@ -1771,7 +1771,7 @@ bin_fg(char *name, char **argv, Options ops, int func)
}
if (!(jobtab[job].stat & STAT_INUSE) ||
(jobtab[job].stat & STAT_NOPRINT)) {
zwarnnam(name, "no such job: %d", job);
zwarnnam(name, "%%%d: no such job", job);
unqueue_signals();
return 1;
}