Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Preliminary release of 3.0.8 - please test
- X-seq: zsh-workers 9970
- From: mason@xxxxxxxxxxxxxxx (Geoff Wing)
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: Preliminary release of 3.0.8 - please test
- Date: 3 Mar 2000 02:55:56 GMT
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- Organization: PrimeNet Computer Consultants
- References: <slrn8bn840.2ac.mason@xxxxxxxxxxxxxxxxxxxxx> <1000229161839.ZM29768@xxxxxxxxxxxxxxxxxxxxxxx>
- Reply-to: mason@xxxxxxxxxxxxxxx
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxxxxxxxxx> typed:
:On Feb 29, 10:33am, Geoff Wing wrote:
:} Subject: Re: Preliminary release of 3.0.8 - please test
:} After some initial usage, got it into a state of:
:} % %
:} fg: no such job: 3
:} % %%
:} fg: no such job: 3
:} % fg
:} fg: no current job
:} % jobs
:} %
:Hrm. The job handling code is now identical to 3.1.6-dev-19, so if you
:can get 3.0.8 into that state theres a problem for 3.1.6 as well.
I'm thinking that getjob() may need a setcurjob() before it checks curjob.
builtin.c:bin_fg() has
....
/* If necessary, update job table. */
if (unset(NOTIFY))
scanjobs();
setcurjob();
....
if (!*argv) {
if (func == BIN_FG || func == BIN_BG || func == BIN_DISOWN) {
if (curjob == -1 || (jobtab[curjob].stat & STAT_NOPRINT)) {
zwarnnam(name, "no current job", NULL, 0);
....
builtin.c:getjob() has
....
if (*s == '%' || *s == '+' || !*s) {
if (curjob == -1) {
zwarnnam(prog, "no current job", NULL, 0);
....
Regards,
--
Geoff Wing : <gcw@xxxxxxxxx> Work URL: http://www.primenet.com.au/
Rxvt Stuff : <gcw@xxxxxxxx> Ego URL : http://pobox.com/~gcw/
Zsh Stuff : <gcw@xxxxxxx> Phone : (Australia) 0413 431 874
Messages sorted by:
Reverse Date,
Date,
Thread,
Author