[ILUG] aliases in bash

Wesley Darlington wesley at blackstar.co.uk
Mon Sep 25 15:47:10 IST 2000


Hi,

On Mon, Sep 25, 2000 at 03:17:53PM +0100, Ross Lynch wrote:
> On Mon, 25 Sep 2000, Wesley Darlington wrote:
> 
> > On Mon, Sep 25, 2000 at 02:35:30PM +0100, Ross Lynch wrote:
> > > Trying to set aliases in a shell script that remain active when the shell
> > > script is finished running. How is it done?
> > 
> > You want a program to export variables/aliases to its *parent*? I don't
> > think it can be done without some magic in the parent. Either that or
> > do you just mean `source'ing a shell script? 
> 
> Could be a stupid question, but how come "alias blah=xyz" in a .bashrc
> works?

A .bashrc file is `source'd - executed as part of the bash process - not
run as a separate (child) process.

Wesley.




More information about the ILUG mailing list