zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: "Jun. T" <takimoto-j@kba.biglobe.ne.jp>
Cc: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: Removing subshell from zargs (see "zargs with -P intermittently failing")
Date: Mon, 30 May 2022 13:07:00 -0700	[thread overview]
Message-ID: <CAH+w=7b=+99cxUS-OqUpYePNoHZq4uX1FEyT-LgjrD+TSx6z_Q@mail.gmail.com> (raw)
In-Reply-To: <CAH+w=7Y1=Sq44tdkGnnLzwFYa2_ztqaNNLo3d+EYJYpB+q8Kyw@mail.gmail.com>

On Mon, May 30, 2022 at 11:39 AM Bart Schaefer
<schaefer@brasslantern.com> wrote:
>
> Harmless, I guess, but potentially confusing enough that the subshell
> wrapper should be left in place?

One additional issue -- if the subshell is removed and you interrupt
zargs -P, you get something like this:

^C%
%
[9]    done       { "${call[@]}"; }
%
[21]  - done       { "${call[@]}"; }
%
[10]    done       { "${call[@]}"; }
%
[20]  - done       { "${call[@]}"; }
%
[11]    done       { "${call[@]}"; }
%
[19]  - done       { "${call[@]}"; }
%
[12]    done       { "${call[@]}"; }
%
[18]  - done       { "${call[@]}"; }
%
[13]    done       { "${call[@]}"; }
%
[17]  - done       { "${call[@]}"; }
%
[14]    done       { "${call[@]}"; }
%
[16]  - done       { "${call[@]}"; }
%
[15]  - done       { "${call[@]}"; }

All things considered, I think using the subshell is in fact preferable.


      reply	other threads:[~2022-05-30 20:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-29 20:56 Bart Schaefer
2022-05-30 16:33 ` Jun. T
2022-05-30 18:39   ` Bart Schaefer
2022-05-30 20:07     ` Bart Schaefer [this message]

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='CAH+w=7b=+99cxUS-OqUpYePNoHZq4uX1FEyT-LgjrD+TSx6z_Q@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=takimoto-j@kba.biglobe.ne.jp \
    --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).