zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.stephenson@samsung.com>
To: zsh-workers@zsh.org
Subject: Re: Shell job structure
Date: Fri, 25 Oct 2013 11:00:56 +0100	[thread overview]
Message-ID: <20131025110056.1757a5ab@pwslap01u.europe.root.pri> (raw)
In-Reply-To: <131024220214.ZM8256@torch.brasslantern.com>

On Thu, 24 Oct 2013 22:02:14 -0700
Bart Schaefer <schaefer@brasslantern.com> wrote:
> } The job table would become a list of top-level jobs, while the job
> } structure would have pointers to nested jobs.
> 
> As I mentioned elsewhere, the procs list and "other" pointer into the
> job table serve this function.
> 
> It still might be done more cleanly, but at least we avoided a full
> rewrite for now.

There's a wider problem of what happens inside nested control
structures, in particular functions.  Consider what happens when you use
"pipestatus" inside a function, and then try to apply it to a pipeline,
that happens to run that function at the right hand end, after the whole
pipeline has finished.  Logically, at least, this requires some kind of
hierarchical handling of jobs, not processes --- although simply saving
and restoring the current job might be good enough.  Does the current
system take account of this kind of thing properly?  If so, maybe things
are better than I thought.

pws


  reply	other threads:[~2013-10-25 10:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CADv1Z=pM7H4Xg9+GyWd4zw0cv0mXfbJvqip6vc7e_yrXRN=1sg@mail.gmail.com>
     [not found] ` <20131005223159.25fea6a0@pws-pc.ntlworld.com>
2013-10-07  0:36   ` No pipefail option? Bart Schaefer
2013-10-07  9:25     ` Peter Stephenson
2013-10-07 14:40       ` Bart Schaefer
2013-10-08 20:44         ` Shell job structure Peter Stephenson
2013-10-25  5:02           ` Bart Schaefer
2013-10-25 10:00             ` Peter Stephenson [this message]
2013-10-25 15:13               ` Bart Schaefer
2013-10-25 15:21                 ` Peter Stephenson
2013-10-25 17:04                   ` 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=20131025110056.1757a5ab@pwslap01u.europe.root.pri \
    --to=p.stephenson@samsung.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).