[CLUG-chat] re: export

Dave Jones dave at my.co.za
Tue Oct 7 07:37:23 SAST 2003


On Tuesday 07 October 2003 23:53, Andy Rabagliati wrote:
This is new info - set -a? nice
I'm off to fiddle
Thanx

> On Sun, 05 Oct 2003, Dave Jones wrote:
> > Anyone care to expalin top me how the export command works, e.g.
> > PKG_CONFIG_PATH=/usr/local/pkgconfig
> > export PKG_CONFIG_PATH
> >
> > What I'm after is not having to do it time and again.
> > I download almost always from source or cvs and it gets to be a drag
> > having to export CVSROOT etc.
> > I think I can put it in bashrc?
>
> It depends on your shell.
>
> If you use (as everyone does, except FreeBSD .. ) bash,
>
> $ set -a
>
> "man bash" /export will tell you about it; it is auto-export.
>
> I think you can use (but not documented?) "export -a PKG_CONFIG_PATH" .
>
> maybe because "export " is also a bash builtin, it takes "set " options.
>
> put "set -a" in ~/.bashrc
>
> Cheers,   Andy!
> _______________________________________________
> Clug-chat mailing list
> Clug-chat at clug.org.za
> http://lists.clug.org.za/mailman/listinfo/clug-chat




More information about the Clug-chat mailing list