umask + newgrp in ~/.bashrc creates bash processes in infinite loop.

Jeff Voskamp javoskam at uwaterloo.ca
Tue Apr 8 15:37:42 UTC 2008


Michal wrote:
> Hallo group members.
>
> I added to ~/.bashrc following lines:
> umask 002
> newgrp $USER
>
>
> then, when starting up bash, bash processes are created in infinite loop.
> You can break it with Ctrl-c, then:
> $ ps
>
> You will see many bash processes.
>
> Have You got idea what might be the reason?
>
> It happens both on fc6 and fc8. I didn't check other.
>
> regards,
> Michal
>
>   
Newgrp starts a new (nested) shell with the new group. The new bash 
reads .bashrc, invokes newgrp... Repeat ad nauseum.

Jeff Voskamp




More information about the fedora-list mailing list