Hi,

In ksh versions at least since ksh-20060214 newgrp is a ksh builtin
on linux. 
When you do a newgrp to a groupname that doesn't exist or a
group that you don't belong to, your shell exits.

When I look in src/cmd/ksh93/data/builtins.c, I know find
#if _bin_newgrp || _usr_bin_newgrp
        "newgrp",       NV_BLTIN|BLT_ENV|BLT_SPC,       Bltin(login),
#endif  /* _bin_newgrp || _usr_bin_newgrp */

and in earlier versions

#ifdef _bin_newgrp
        "newgrp",       NV_BLTIN|BLT_ENV|BLT_SPC,       Bltin(login),
#endif  /* _bin_newgrp */

Since on RedHat Linux newgrp is in /usr/bin, the new test makes
newgrp a builtin with the newer versions of ksh, while in older
versions newgrp isn't configured to be a builtin.

Can this be the source of our problem?

regards,
-- 

Peter van Hooft
Philips Research


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

Reply via email to