🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.linux
Article #47286

Re: How do I set a Linux environment variable Please

#47286
From: Glen Turner
Date: Thu, 14 Jan 1999 00:00
44 lines
1932 bytes
cmfinlay@magnet.com.au wrote:
> 
> How do I set the Linux environment variable "F_LIB"
> to the directory "/usr/local/lib/F" please
> which I have made.

The traditional incantation is:

  F_LIB=/usr/local/lib/F
  export F_LIB

Enter

  echo $F_LIB

to see if F_LIB has been set to what you expect.


The "bash" manual page contains the on-line documentation,
which is really a reference and specificationfor use by
programmers:

   A variable may be assigned to by a statement of the form

     name=[value]

   If  value  is not given, the variable is assigned the null
   string.  All values undergo tilde expansion, parameter and
   variable   expansion,   command  substitution,  arithmetic
   expansion, and quote removal.  If the variable has its  -i
   attribute  set  (see  declare  below in SHELL BUILTIN COM-
   MANDS) then value is subject to arithmetic expansion  even
   if  the  $[...] syntax does not appear.  Word splitting is
   not performed, with the exception  of  "$@"  as  explained
   below under Special Parameters.  Pathname expansion is not
   performed.

Given your question, I'd suggest buying a good UNIX or Linux
beginners book.  I learnt from Wang's "An introduction to
Berkeley UNIX", but this is pretty dated now.  People have
said good things about "Running Linux".

Cheers,
Glen
Technical Details
Message-ID: <369CA02B.A49071FE@adelaide.edu.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <369d7ffc.2247100@news.ozemail.com.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 102983,89734bff8308e15
X-Google-Attributes: gid102983,public
From: Glen Turner <glen.turner@adelaide.edu.au>
Subject: Re: How do I set a Linux environment variable Please
Date: 1999/01/14
Message-ID: <369CA02B.A49071FE@adelaide.edu.au>
X-Deja-AN: 432118626
Content-Transfer-Encoding: 7bit
References: <369d7ffc.2247100@news.ozemail.com.au>
Content-Type: text/plain; charset=us-ascii
Organization: IT Services, University of Adelaide, South Australia
MIME-Version: 1.0
Newsgroups: aus.computers.linux