[OT] Unix environment tables, was: Re: What is the draw of VMS?



On 2012-06-22, Johnny Billquist <bqt@xxxxxxxxxx> wrote:
On 2012-06-22 00:24, Single Stage to Orbit wrote:

May I point out that environment variables used in [Li,U]n*x can do
pretty much the same thing? i.e $HOME stores your home directory path.

So, how do I change the $HOME of my *parent* process? <evil grin...>


That's what source is for (in bash) and it's what I use in this case. :-)

Yes, I know it's not the same as altering the parent process environment
table, but it has the same effect as if it did when you want to customise
your environment in a controlled way for some reason.

Simon.

--
Simon Clubley, clubley@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Microsoft: Bringing you 1980s technology to a 21st century world
.



Relevant Pages

  • Re: [OT] Unix environment tables, was: Re: What is the draw of VMS?
    ... i.e $HOME stores your home directory path. ... I know it's not the same as altering the parent process environment ... (You can always change your own environment variables, be it by sourcing a script file, or by doing interactive commands on the command line...) ...
    (comp.os.vms)
  • Re: ENV variable NOT recognized ! Reboot really necessary ????
    ... this will only change the environment block for new processes created *after* the change. ... Existing processes will keep on using their current environment block, which is the same as it was before you made the change. ... But an application needs to be written to explicitly do this; there's no mechanism in the operating system to universally update environment variables on the fly for running processes. ... For example, say you had a command prompt open, and you run a SET command to display the current variables. ...
    (microsoft.public.windowsxp.help_and_support)
  • [REVS] Using Environment for Returning Into Lib C
    ... This article explains how to use the environment variables to successfully ... The environment will consequently be used to store it. ... It is easy to write a simple program to put the command directly into the ... declare -x COLORTERM="" ...
    (Securiteam)
  • Re: SSH environment variable passing
    ... has to be a capability of both the client and the server. ... to support only a couple of specific environment variables. ... I have been told that allowing unlimited environment variables to be set ... A parallel situation exists in telnet. ...
    (SSH)
  • Re: Multiple interpreters retaining huge amounts of memory
    ... environment variable separation for changes made unique to a sub ... you can make changes to environment variables ... extension module in different sub interpreters, ...
    (comp.lang.python)