Le 09/11/2010 13:38, [email protected] a écrit :
> 
> 
> In my opinion: Don't do it.
> It's undefined behaviour and typically untested,
> which would explain the weird things you see.

I don't follow you, what is an undefined behaviour,
untested and so on ?

> The unspoken assumption of a 'login shell' process is
> 
>     [[ $HOME == $(pwd) && -r . && -x . ]]
> 
> (We could argue about [[ -w . ]], but I digress)
> 
> I believe this is what login does when a shell is invoked.

you are wrong, any shell just check if $0 begin with a dash,
if yes, source /etc/profile and $HOME/.profile.

> I believe this is what 'su - ...' does.

you are wrong too, su - execute $SHELL with $0 = ${SHELL##*/}
prefixed with a dash.

Regards,

Cyrille Lefevre
-- 
mailto:[email protected]



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

Reply via email to