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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux