Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: fg and bg tests
- X-seq: zsh-workers 42726
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: Zsh hackers' list <zsh-workers@xxxxxxx>
- Subject: Re: PATCH: fg and bg tests
- Date: Thu, 26 Apr 2018 09:08:23 +0100
- Cms-type: 201P
- Dkim-filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180426080829euoutp01b194a26c429d3afb2bcbd4ef29e6ce1b~o7fTSnFs11672916729euoutp01w
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1524730109; bh=7Tevc0aFqJJs5yBCNlof+rE2kQb0t3G2lXz8I6nl1EA=; h=Date:From:To:Subject:In-Reply-To:References:From; b=phKvHcq4Xm1CZH2ZFrT+83g6tPf4vzYkny/rLLIfAP3AmH2hUUyECSwEhRqxPrMOq YsOORiSo4klZgsSqhSqmK3QbYd4vGkRafKVs5i0779cMNcuMotGIyitCJDDs7u/Reu MhUZMSBn2oIgWwIQpDOVXPYRzHG9IQUzOKVMluX0=
- In-reply-to: <CAH+w=7Y_xL+UbwrFt_L1TCq+b2jEr53tb5XmOrG+uUiE4af9rA@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Organization: SCSC
- References: <CGME20180425090941eucas1p187cf5d07341d2041c15e9947962f3bd9@eucas1p1.samsung.com> <20180424135944.64e73c62@camnpupstephen.cam.scsc.local> <20180425100940.31816d28@camnpupstephen.cam.scsc.local> <CAH+w=7bxJQN6bvGdGNmGrA7jDa9xJei+kQ_0X+0kxX9pR176Zg@mail.gmail.com> <20180425155647.3e897139@camnpupstephen.cam.scsc.local> <20180425180155.13597f28@camnpupstephen.cam.scsc.local> <CAH+w=7ZoMcrLvctSnUv7RuA=W555J1HenpbOD55X7ZFr3XPQ7Q@mail.gmail.com> <20180425184110.3de75e94@camnpupstephen.cam.scsc.local> <CAH+w=7Y_xL+UbwrFt_L1TCq+b2jEr53tb5XmOrG+uUiE4af9rA@mail.gmail.com>
On Wed, 25 Apr 2018 10:55:55 -0700
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Wed, Apr 25, 2018 at 10:41 AM, Peter Stephenson
> <p.stephenson@xxxxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author