[oclug] set $PATH

Bruce Harding bruce at computerbooksforless.com
Thu Jul 10 16:06:01 EDT 2003


On Thu, 10 Jul 2003 20:58:36 +0100
Matthew Wilcox <willy at debian.org> wrote:

> On Thu, Jul 10, 2003 at 03:42:14PM -0400, Bruce Harding wrote:
> > Actually I got this a little bit wrong I think.  I think my line
> > should have been....
> > export PATH=$PATH:/opt/OpenOffice.org*/program:$PATH
> > 
> > I don't know if this makes any difference to the following posts? 
> > This just one of several areas I trouble with.  I have such trouble
> > getting my brain to understand the syntax. 
> 
> No, you had it right before.
> 
> shell variables aren't too hard to understand.  you create them
> thusly:
> 
> foo=bar
> 
> and use them so:
> 
> echo $foo
> 
> your example is a case of using and assigning:
> 
> foo=$foo:bar
> 
> so you end up appending ":bar" to the existing definition of foo.
> 
> when experimenting with assigning variables, it's generally a good
> idea to practice on variables that aren't interpreted specially by the
> shell like PATH ;-)

Okay I think I understand.  To make this permenant change I need to put
this in my .bashrc file?

-- 

Bruce Harding

Manager
Computer Books For Less
RefurbComputers.ca

Merivale Mall
1642 Merivale Rd.
Ottawa ON   K2G 4A1
Phone: 613-224-0135
Fax: 613-224-0683
Email: bruce at computerbooksforless.com
www: www.computerbooksforless.com
www: www.refurbcomputers.ca
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://tux.oclug.on.ca/pipermail/oclug/attachments/20030710/5096e5a1/attachment.bin


More information about the OCLUG mailing list