cc: [email protected]
Subject: Re: [ast-developers] Usage difference between newgrp and  
/usr/bin/newgrp?
--------


> Is there a reason why the newgrp builtin and /usr/bin/newgrp behave
> differently on Solaris? /usr/bin/newgrp and newgrp both switch to the
> specified group to execute commands, but if something goes wrong, like
> specifying newgrp --help, the builtin newgrp will terminate the
> calling shell (in case of a login shell this means you're being logged
> out) while /usr/bin/newgrp leaves the calling shell running.
> 
> Irek
> 

newgrp in ksh is equivalent to exec newgrp.  This behavior is permitted
by the posix standard and was the behavior in the Bourne shell.
I might revisit this for ksh93v.

David Korn
[email protected]
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to