From: Omer S. <osh...@in...> - 1999-12-31 07:37:11
|
Now that psh is actually usable as a login shell, it needs to be a bit more robust. For a start, it needs to check if it's the user's login shell; this should be as simple as getpwnam/getpwuid. I'll checkin a patch to Unix.pm to do this. (Win.pm's equivalent function should always return false -- actually, what if someone built, say, a telnet daemon which offered psh as a shell? would they need to edit the symbol table?) Would it be reasonable to set $Psh::ignore_die if psh is the login shell? Knowing if psh is the login shell will also allow us to use $ENV{SHLVL} (or is it SHELL_LVL? something like that). -- Omer Shenker osh...@in... |