[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash newgrp(1) -c option? Fwd: /usr/bin/sg in Cygwin?
From: |
Chet Ramey |
Subject: |
Re: bash newgrp(1) -c option? Fwd: /usr/bin/sg in Cygwin? |
Date: |
Mon, 22 Apr 2024 11:17:20 -0400 |
User-agent: |
Mozilla Thunderbird |
On 4/22/24 1:41 AM, Cedric Blancher wrote:
Chet,
The Solaris ksh93-integration version of ksh93 has a newgrp -c option
(David Korn, Glenn Fowler and Roland Mainz did implement it), which
works like ksh93/bash -c, and executes script under the requested
group, and upon exiting resumes the old shell with the old group.
Could you please implement this (newgrp -c 'command') in the bash
newgrp builtin too?
Bash doesn't have a newgrp builtin.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc
Description: OpenPGP digital signature