Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Removing subshell from zargs (see "zargs with -P intermittently failing")
- X-seq: zsh-workers 50310
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: "Jun. T" <takimoto-j@xxxxxxxxxxxxxxxxx>
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Removing subshell from zargs (see "zargs with -P intermittently failing")
- Date: Mon, 30 May 2022 13:07:00 -0700
- Archived-at: <https://zsh.org/workers/50310>
- In-reply-to: <CAH+w=7Y1=Sq44tdkGnnLzwFYa2_ztqaNNLo3d+EYJYpB+q8Kyw@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAH+w=7auHNRoNPrs1NP6kbYu0FWh5jB92QxihxhAULDEjwm_rw@mail.gmail.com> <67D8ACEC-3D46-4EC4-9AAD-C508C7097499@kba.biglobe.ne.jp> <CAH+w=7Y1=Sq44tdkGnnLzwFYa2_ztqaNNLo3d+EYJYpB+q8Kyw@mail.gmail.com>
On Mon, May 30, 2022 at 11:39 AM Bart Schaefer
<schaefer@xxxxxxxxxxxxxxxx> 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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author