Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: subshell into a new process group
- X-seq: zsh-workers 54509
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Anthony Heading <ajrh@xxxxxxxx>
- Cc: zsh-workers@xxxxxxx
- Subject: Re: PATCH: subshell into a new process group
- Date: Sat, 9 May 2026 06:30:30 +0200
- Arc-authentication-results: i=1; mx.google.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=pE9esIYiG3Dl2c7R+tTbA+p2b74ENehxVt/mKcGaWRE=; fh=F2lyBQpKg0BnT5aUT8hKwmSGrQht0972d5d7XZZl0Xg=; b=NeqkIUbr7I1mYZNUUGkRrximl5gJVozrIYWwMLcsumYCGnI1ja0QjAFE+dOI2hwfAv zQ72TorNgR7Ryldl3KlSwFl5UgPWls0IFGcIPPqwPx5nRSzJJOY2AbkG/7D2UZunrI5V tpcanZ2q4e0wnpKaieF2nx8dLf+ThH38OIlYb4ZZ8JN2S1liZ4P0aXKMk2RQIh/2iueb udkQJeyPYT7CRLYSYlS0ovVW/n3OfRMAPu4O63bHwsSrg47pVONtkTAF/uqwj3l92C5D yy8nnpj2uvvKjL/bHGDIKBIuzU9LDjjY1B85wNRus3j/++a1CBBrzoZkx9YcnCfiVk0j Om+A==; darn=zsh.org
- Arc-seal: i=1; a=rsa-sha256; t=1778301045; cv=none; d=google.com; s=arc-20240605; b=c4bSCqu4a3fQFNFof4qEzfR/zYbsbxIAuO9cmqupkAk6eypfa6H1bjYOJJukI9A1Nu TnRnRUOWB9O9hKjW1ut8+hpzFkICMAyFXP/vgYYpEMydylSDL/uOlA8yM41v59+Bde4L pBowbhDGIAK2Bg3WCsad2kpn3QwDNjtUnDZFexMacpItu/O9sMJVn2kgqPC7zAEs499N H4ST7dMUroMRpfWU657pcajeIoETaFAq8sAl5K8obdyYn2ZoNzkqBl4SQcttPf594syl WfI6l//pkZ1EHY/LGDixP/vItKQFZYdZpwfNQsyJfLXrGf5Rtc9S+u9r1pbfVQeyPvm/ xAhA==
- Archived-at: <https://zsh.org/workers/54509>
- In-reply-to: <c8058f0e-45c1-4c24-b607-70b64101b692@app.fastmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <c8058f0e-45c1-4c24-b607-70b64101b692@app.fastmail.com>
Hi,
Since you set the 0/0 min/max arguments in bintab, there's no reason
to handle checking *args yourself (code should never be reached, you
just happened to pick the exact same error message I think.
Why is the builtin called syssetpgid when you use setpgrp()?
The manpage I have for these things says that setpgrp() is super
obsolete and not supported, I guess this is the bikeshed part? I've
never used these functions so I can't offer any particular wisdom but
it seems like dragons be here territory to me.
On Sat, May 9, 2026 at 6:17 AM Anthony Heading <ajrh@xxxxxxxx> wrote:
>
> Hi,
>
> I have found this feature useful to allow signals to be sent to precisely bounded subshell trees. I couldn't find any existing way to achieve it; only the job code and zpty seem be close but neither of them allows exactly this. There's a bit of bikeshed argument about the name, the old argument-less setpgrp in SysV style is closer in spirit but it obsolescent and inconsistent with BSD, something less cryptic overall might be helpful but the zsystem module if it's the right home tends be be OS level. Anyway, I'm interested in pre-existing solutions or whether this is a useful feature as is.
>
> Regards
>
> Anthony
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author