On 2010-11-10 00:24, Cyrille Lefevre:
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 ?
Hi Cyrille,
If you start a shell (any shell) with arg0 == -* from any other
program, you'd better set HOME and cd to it beforehand, just like the
others do. Otherwise the shell will probably become confused.
login(1) and su(1) both do this. And yes, after they set HOME and cd to
it, they invoke the SHELL with an initial "-" on arg0.
Most programs get confused if they cannot read their current directory,
especially if they're supposed to be the owner.
Cheers,
Henk
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users