[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bash_profile



Le mercredi 07 septembre 2005 à 17:24 +0200, mess-mate a écrit :
> Bonjour,
> je viens de m'apercevoir que mon ~/.bash_profile n'est pas pris en
> compte lors du login en interactif.
> Par ailleurs y'a pas de bash_profile dans /etc.

L'équivalent est le fichier /etc/profile.

> Comment peut-on faire pour que celui-ci soit pris en compte ?

D'après le manuel de bash:

 «When  bash is invoked as an interactive login shell, or as a
non-interactive shell with the --login option, it first reads and
executes  commands  from  the file /etc/profile, if that file exists.
After reading that file, it looks for ~/.bash_profile, ~/.bash_login,
and ~/.profile, in that order, and reads and executes commands from the
first one that exists and is readable.»

Peut-on donc voir à quoi ressemble ton ~/.bash_profile ?

-- 
Raphaël 'SurcouF' Bordet
http://debianfr.net/ | surcouf at debianfr dot net





Reply to: