zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.stephenson@samsung.com>
To: Zsh hackers' list <zsh-workers@zsh.org>
Subject: Re: PATCH: fg and bg tests
Date: Thu, 26 Apr 2018 09:08:23 +0100	[thread overview]
Message-ID: <20180426090823.710838d0@camnpupstephen.cam.scsc.local> (raw)
In-Reply-To: <CAH+w=7Y_xL+UbwrFt_L1TCq+b2jEr53tb5XmOrG+uUiE4af9rA@mail.gmail.com>

On Wed, 25 Apr 2018 10:55:55 -0700
Bart Schaefer <schaefer@brasslantern.com> wrote:
> On Wed, Apr 25, 2018 at 10:41 AM, Peter Stephenson
> <p.stephenson@samsung.com> wrote:
> >
> > With a bit of luck, dc is easier to manage all round.  
> 
> Sadly:
> 
> ./W02jobs.ztst: starting.
> Pattern match filead, line mismatch (6/9):
>  <1
>  <zsh:*(stopped|suspended)*dc*
>  <*continued*dc*
>  <*(stopped|suspended)*dc*
>  <*continued*dc*
>  <2
>  >1

Bart's later experiments suggest this is the helpful behaviour of
exiting on SIGTTIN.

I did a little more experimentation, including attempting to use
subshells reading and writing.  Every attempt to make the input more
manageable resulted in either missing lines or empty blank lines.  The
real killer is bg --- I couldn't see a robust way of ensuring that the
process had gone into the background, got SIGTTIN, then suspended
again.  Needless to say I don't want just to add sleeps.

I think I'm going to have to remove those tests and give up on this for
now.

pws


  reply	other threads:[~2018-04-26  8:08 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20180424125946eucas1p1f04c37866bb05e4a72edf4259af38238@eucas1p1.samsung.com>
2018-04-24 12:59 ` Peter Stephenson
     [not found]   ` <CGME20180425090941eucas1p187cf5d07341d2041c15e9947962f3bd9@eucas1p1.samsung.com>
2018-04-25  9:09     ` Peter Stephenson
2018-04-25 10:32       ` Stephane Chazelas
2018-04-25 14:28       ` Bart Schaefer
2018-04-25 14:56         ` Peter Stephenson
2018-04-25 17:01           ` Peter Stephenson
2018-04-25 17:16             ` Bart Schaefer
2018-04-25 17:41               ` Peter Stephenson
2018-04-25 17:55                 ` Bart Schaefer
2018-04-26  8:08                   ` Peter Stephenson [this message]
2018-04-26 14:37                     ` 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=20180426090823.710838d0@camnpupstephen.cam.scsc.local \
    --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).