Mail Archives: cygwin/2011/11/01/13:42:03
--FL5UXtIhxfXey3p5
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Tue, Nov 01, 2011 at 01:38:41PM +0200, Oleksandr Gavenko wrote:
> 31.10.2011 23:00, David Sastre =D0=BF=D0=B8=D1=88=D0=B5=D1=82:
> >YMMV, but 'bash -l' should source your profile settings, both
> >system-wide and user defined.
>=20
> Do you mean "bash -i"?
=46rom the manpage:
-i If the -i option is present, the shell is interactive.
-l Make bash act as if it had been invoked as a login shell.
And:
When bash is invoked as an interactive login shell, or as a=20
non-interactive shell with the --login option, it first reads and=20
executes commands from the file /etc/profile, if that file exists.=20=20
After reading that file, it looks for ~/.bash_profile, ~/.bash_login,=20
and ~/.profile, in that order, and reads and executes commands from=20=20
the first one that exists and is readable.=20=20
The --noprofile option may be used when the shell is started to inhibit=20
this behavior.
When an interactive shell that is not a login shell is started, bash=20
reads and executes commands from /etc/bash.bashrc and ~/.bashrc, if=20
these files exist. This may be inhibited by using the --norc option.=20=20
The --rcfile file option will force bash to read and execute commands=20
from file instead of /etc/bash.bashrc and ~/.bashrc.
HTH.
--=20
Huella de clave primaria: AD8F BDC0 5A2C FD5F A179 60E7 F79B AB04 5299 EC56
--FL5UXtIhxfXey3p5
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iF4EAREIAAYFAk6v4IQACgkQ95urBFKZ7FbLkgD6ArUdBBajrGiMmtseGbDaRoAX
RFoMhqD5FZnhczjHo9oA/RMGTL+WgAHdpFsMOPN774YC8DjqiRO0qzrbKJhquVd0
=S4mK
-----END PGP SIGNATURE-----
--FL5UXtIhxfXey3p5--
- Raw text -