Re: fail

トップ ページ

このメッセージに返信
著者: laurent.dieudonne
日付:  
To: guilde
題目: Re: fail
Selon Christian Marillat <marillat.christian@???>:

> Patrick Dupre <pdupre@???> writes:
>
> > Bonjour,
>
> Bonsoir,
>
> > Quelle difference entre lancer une application directement (ex. qcad sous
> > user) et la lancer par su -l user -c qcad ?
> > Dans la premier cas elle plante, dans le second ca marche !
> > Est-ce lie au .bashrc ou .bash_profile ?
>
> L'option -l n'est pas documentée sous Debian. Elle correspond à quoi ?

si!
info su

`-l' 
`--login' 
     Make the shell a login shell.  This means the following.  Unset all 
     environment variables except `TERM', `HOME', and `SHELL' (which 
     are set as described above), and `USER' and `LOGNAME' (which are 
     set, even for the super-user, as described above), and set `PATH' 
     to a compiled-in default value.  Change to USER's home directory. 
     Prepend `-' to the shell's name, intended to make it read its 
     login startup file(s). 


De memoire, un 'login shell' provoque le chargement de .bashrc

Laurent