From: Peter Stephenson <pws@ifh.de>
To: zsh-workers@math.gatech.edu (Zsh hackers list)
Subject: Re: % bug in beta20-test1
Date: Tue, 11 Jun 1996 11:14:14 +0200 [thread overview]
Message-ID: <199606110914.LAA21011@hydra.ifh.de> (raw)
In-Reply-To: "mason@werple.net.au"'s message of "Sat, 08 Jun 1996 02:17:14 MET." <199606071617.QAA14781@werple.net.au>
mason@werple.net.au wrote:
> % %
> zsh: command not found: fg
This is supposed to fixed this (plus the same bug which occurred with
autoresume).
> I also had it not recognising "fg", and had to do "builtin fg" though I
> can't reproduce that at the moment.
It's assumed not to fix this.
*** Src/exec.c.fg Tue Jun 11 11:01:27 1996
--- Src/exec.c Tue Jun 11 11:01:27 1996
***************
*** 1191,1196 ****
--- 1191,1220 ----
}
return;
}
+ } else {
+ /* If AUTORESUME is set, the command is SIMPLE, and *
+ * doesn't have any redirections, then check if it *
+ * matches as a prefix of a job currently in the job *
+ * table. If it does, then we treat it as a command to *
+ * resume this job. */
+ if (isset(AUTORESUME) && (how & Z_SYNC) && empty(cmd->redir) &&
+ !input && !nextnode(firstnode(args)) && !cmd->flags) {
+ if (unset(NOTIFY))
+ scanjobs();
+ if (findjobnam(peekfirst(args)) != -1) {
+ pushnode(args, dupstring("fg"));
+ checked = 0;
+ }
+ }
+ /* If the command begins with `%', then assume it is a *
+ * reference to a job in the job table. */
+ if (*(char *)peekfirst(args) == '%') {
+ pushnode(args, dupstring((how & Z_DISOWN)
+ ? "disown" : (how & Z_ASYNC)
+ ? "bg" : "fg"));
+ how = Z_SYNC;
+ checked = 0;
+ }
}
if (errflag || checked || (cflags & BINF_COMMAND))
***************
*** 1214,1240 ****
hn = NULL;
}
}
-
- /* If the command begins with `%', then assume it is a *
- * reference to a job in the job table. */
- if (nonempty(args) && *(char *)peekfirst(args) == '%') {
- pushnode(args, dupstring((how & Z_DISOWN)
- ? "disown" : (how & Z_ASYNC) ? "bg" : "fg"));
- how = Z_SYNC;
- }
-
- /* If AUTORESUME is set, the command is SIMPLE, and doesn't have *
- * any redirections, then check if it matches as a prefix of a *
- * job currently in the job table. If it does, then we treat it *
- * as a command to resume this job. */
- if (isset(AUTORESUME) && type == SIMPLE && (how & Z_SYNC) &&
- nonempty(args) && empty(cmd->redir) && !input &&
- !nextnode(firstnode(args)) && !cmd->flags) {
- if (unset(NOTIFY))
- scanjobs();
- if (findjobnam(peekfirst(args)) != -1)
- pushnode(args, dupstring("fg"));
- }
/* Get the text associated with this command. */
if (jobbing || (how & Z_TIMED))
--- 1238,1243 ----
--
Peter Stephenson <pws@ifh.de> Tel: +49 33762 77366
WWW: http://www.ifh.de/~pws/ Fax: +49 33762 77330
Deutches Electronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.
next prev parent reply other threads:[~1996-06-11 9:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-06-07 16:17 Geoff Wing
1996-06-11 9:14 ` Peter Stephenson [this message]
1996-06-11 9:56 ` Zoltan Hidvegi
1996-06-11 11:24 ` Peter Stephenson
1996-06-11 11:45 ` Zoltan Hidvegi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199606110914.LAA21011@hydra.ifh.de \
--to=pws@ifh.de \
--cc=zsh-workers@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).