Re: what's export?
- From: Hul Tytus <htytus@xxxxxxxxx>
- Date: 16 Aug 2006 18:36:01 -0400
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 -
.
- Follow-Ups:
- Re: what's export?
- From: colonel_hack
- Re: what's export?
- References:
- what's export?
- From: Hul Tytus
- Re: what's export?
- From: kosik@xxxxxxxxxxxxx
- what's export?
- Prev by Date: what's export?
- Next by Date: Re: what's export?
- Previous by thread: Re: what's export?
- Next by thread: Re: what's export?
- Index(es):
Relevant Pages
|