(login) behaviour.

phil at ux1.cso.uiuc.edu phil at ux1.cso.uiuc.edu
Sat May 20 08:19:00 AEST 1989


I did....

(echo hey;login);echo test

Saw "hey" displayed, and went through login.  "ps ux" shows an extra csh.
I logged out, and then saw "test" displayed.  So I guess I really got a
new login shell from the subshell.

Apparently doing....

(login)

all by itself doesn't really fork a new process for shell commands such
as login and cd, but rather does them and then restores everything, such
as connected directory.  So...

(cd xyz)

has no net effect.

--phil



More information about the Comp.unix.wizards mailing list