Re: [SLUG] A bash question

From: Kai Lien (kai@lenseco.com)
Date: Fri Sep 14 2001 - 15:40:13 EDT


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You do not have to log out to re-parse the .bashrc or .bash_profile. All
you need is to re-source them after the chanages. Actually, in Red Hat,
you just need to source the .bash_profile since the latter script runs
.bashrc also.

Example:
#in your home dir

vi .bash_profile

#save the changes such as adding new aliases

source .bash_profile

#there is no need to log-out

Kai

On Fri, 14 Sep 2001, Mike Manchester wrote:

> The .bashrc file is only executed when you start a new shell and the
> .bash_profile is only run when you logon. So unless you loged off and
> back on the alias in the .bash_profile will not be run. .bash_logout is
> run on logging out.
> Mike M
>
> Ron KA4INM Youvan wrote:
>
> > Hi all:
> > I've moved since I last saw my `bash shell' book, perhaps
> > someone can tell me off the top of their head:
> >
> > Last night I tried to add an alias to my `profile' file
> > but it didn't show up when I entered alias, in fact I see a
> > different set of aliases than I see in /etc/profile.
> > (the operating aliases are old with the wrong paths)
> > `whereis' found /etc/profile (and the directory `/etc/profile.rc')
> > `find' could not find anything named profile. ???
> > What else can set or control the aliases? I did have
> > enlightenment running, although I was working in a console.
> >
> > 73 (= Best Regards) de: (= this is) Ron ka4inm@qsl.net
> > Please visit my HAM web site at: http://www.qsl.net/ka4inm
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>

- --

Kai Lien

DSA key ID 39BD44C0

Lense Consulting Company
www.lenseco.com

Fortune Cookie of the Day:

Lack of capability is usually disguised by lack of interest.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7ol0hztiWgzm9RMARAlqTAJ9s8YCDVSGkKZYZ03f6ri87aWJmvgCfVFbA
DvRZCeAfrE+pjF8jfUB8vFQ=
=l5Oz
-----END PGP SIGNATURE-----



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:21:49 EDT