Re: what's export?



Thanks - your description answers the question.
ay advice on question #2?
Neither the path statement of the export one appear to have any effect.

Hul

kosik@xxxxxxxxxxxxx <kosik@xxxxxxxxxxxxx> wrote:
: Hul Tytus wrote:
:> comp.os.minix
:> what's export?
:>
:> What is the function of the command "export"? It appears to be a directive to
:> "place something somewhere" as much as a command in both Unix & Minix (2.xxx).
:>
:> Another question; the statement:
:> PATH=$PATH:/usr/xxx
:> export PATH
:> doesn't work from a shell script - any idea why?
:>
:
: Hi,
:
: My understanding is that `export' is standard bash built-in command.
: It ensures that a given environment variable will be visible also for
: each child processes forked from that shell session.This is manytimes
: practical. Behavior of various programs is influenced by these
: environment variables if they are set. See for example
:
: man man
:
: section `ENVIRONMENT'. You see that if you set the PAGER variable, it
: will influence the choosing which program to use to skim through manal
: pages. If you did
:
: PAGER=more
:
: it would have no effect because if you run `man man', the `PAGER'
: variable would not be inherited by the `man' process. However, if you
: do
:
: export PAGER=more
:
: then the `man' pager sees it and will use program `more' (not `less').
:

--
- for email, put the word "keeper" in the subject line -
.



Relevant Pages

  • Re: win16
    ... system properties - advanced - environment variables. ... in to the existing PATH statement in the environment variable and reboot. ...
    (microsoft.public.win2000.general)
  • Re: Cannot Run Ping Command
    ... it sounds like your path statement may be fouled up. ... Environment Variables. ... In the System Variables box, look for Path, select ... >I keep getting the error message that it is not ...
    (microsoft.public.windowsxp.general)
  • Re: Path command
    ... You can edit the Path statement by right clicking on My Computer, ... Properties and then the Advanced tab - Environment Variables. ... Will Denny ... MS-MVP Windows - Shell/User ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Command Lines
    ... selecting the Advanced tab, then clicking on the Environment Variables ... "Will Denny" wrote: ... > Is the windows\system32 folder in the Path Statement? ...
    (microsoft.public.windowsxp.general)