From: Matti Aarnio <matti.aarnio@zmailer.org>
To: Venkat Raghu <venkatraghu2002@yahoo.com>
Cc: linux-kernel@vger.kernel.org, linux-newbie@vger.kernel.org
Subject: Re: newbie
Date: Tue, 20 Aug 2002 10:32:36 +0300 [thread overview]
Message-ID: <20020820073236.GB32427@mea-ext.zmailer.org> (raw)
In-Reply-To: <20020819223018.79961.qmail@web40015.mail.yahoo.com>
On Mon, Aug 19, 2002 at 03:30:18PM -0700, Venkat Raghu wrote:
> Hi,
>
> I have a bash script which modifies some environment
> variables and does some other housekeeping things.
> But problem is that when script finishes running,
> new values of environment variables are no longer
> visible in parent shell. So what should I do so that
> these new values are visible in parent. I don't want
> to run as ". file.sh". I have to run it as "file.sh"
> only.
The things you do in child process environments are
inheritable only to their childs, never to parent.
If they were, there would be massive security problems,
just to mention one consequence...
If you want your current shell to get the new values,
you have to do: . file.sh
> Kindly mail me at venkatraghu2002@yahoo.com
>
> Regards
> Venkat.
next prev parent reply other threads:[~2002-08-20 7:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-19 22:30 newbie Venkat Raghu
2002-08-20 7:32 ` Matti Aarnio [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-10-04 22:44 newbie Venkat Raghu
2002-08-17 1:31 newbie Venkat Raghu
2000-11-15 17:10 Newbie richardj_moore
2000-11-14 4:01 Newbie Aamir Dogar
2000-11-15 16:09 ` Newbie Tigran Aivazian
2000-11-15 16:43 ` Newbie John Levon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020820073236.GB32427@mea-ext.zmailer.org \
--to=matti.aarnio@zmailer.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-newbie@vger.kernel.org \
--cc=venkatraghu2002@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®