From: Bart Schaefer <schaefer@brasslantern.com>
To: "Zsh Hackers' List" <zsh-workers@zsh.org>
Subject: Re: Using "source" in a function breaks job control
Date: Fri, 24 Apr 2015 09:21:30 -0700 [thread overview]
Message-ID: <150424092130.ZM29016@torch.brasslantern.com> (raw)
In-Reply-To: <20150424162542.2efb36a3@pwslap01u.europe.root.pri>
On Apr 24, 4:25pm, Peter Stephenson wrote:
}
} Apparently a few more verses need adding to the [Elder Edda].
Indeed, now we just have to figure these two out:
torch% vi() { source =(<<<false); vim -u NONE -N; print "vim exited $?" }
torch% vi
zsh: suspended
Note we don't have the jobtext there. If there's no "source" then we
get the correct jobtext ("suspended vi"). There may be one more global
not getting the right treatment in execlist()? The jobtext as displayed
there comes from the loop over jn->procs in printjob(). Perhaps the
remaining issue is that list_pipe_job isn't restored soon enough.
And then:
torch% fg
[1] + continued
vim exited 148
torch%
As you noted a few messages back, this is the exit status from the signal
stop rather than from the actual exit.
next prev parent reply other threads:[~2015-04-24 16:21 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-22 18:11 Daniel Hahler
2015-04-22 20:41 ` Peter Stephenson
2015-04-22 21:26 ` Peter Stephenson
2015-04-23 4:55 ` Bart Schaefer
2015-04-23 20:13 ` Peter Stephenson
2015-04-24 6:22 ` Bart Schaefer
2015-04-24 15:25 ` Peter Stephenson
2015-04-24 15:43 ` Peter Stephenson
2015-04-24 16:21 ` Bart Schaefer [this message]
2015-04-27 17:29 ` Peter Stephenson
2015-04-28 10:18 ` Peter Stephenson
2015-04-28 15:57 ` Bart Schaefer
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=150424092130.ZM29016@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-workers@zsh.org \
/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).