From: Pascal Bourguignon <spam@mouse-potato.com>
Subject: Re: updating shell environment variables
Date: 05 Nov 2004 20:45:29 +0100 [thread overview]
Message-ID: <878y9gqduu.fsf@naiad.informatimago.com> (raw)
In-Reply-To: 2v1vjcF2enbojU1@uni-berlin.de
Kevin Rodgers <ihs_4664@yahoo.com> writes:
> Dan Elliott wrote:
> > My intended question is a bit more complicated. Change the above from
> > "few" to "nearly one-hundred." I have failed to discover an effective
> > way to do this. Can I somehow *flash* the state of emacs' environment
> > variables to be in line with the shell that "owns" my current emacs
> > session?
>
> Like this?
>
> # in the shell:
> env | awk -F= '{print "(setenv \"" $1 "\" \"" $2 "\")" }' > /tmp/env.el
It won't work when there are double-quotes or new-lines in the values
or the variables (although shell syntax forbid it, a program could
create such a variable before forking the shell).
> ; in emacs:
> (load-file "/tmp/env.el")
>
> --
> Kevin Rodgers
--
__Pascal Bourguignon__
next prev parent reply other threads:[~2004-11-05 19:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-05 14:49 updating shell environment variables Dan Elliott
2004-11-05 15:50 ` Kevin Rodgers
2004-11-05 17:09 ` Dan Elliott
2004-11-05 18:37 ` Kevin Rodgers
2004-11-05 19:45 ` Pascal Bourguignon [this message]
2004-11-05 19:27 ` Pascal Bourguignon
2004-11-05 19:53 ` Johan Bockgård
2004-11-05 17:07 ` Thien-Thi Nguyen
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=878y9gqduu.fsf@naiad.informatimago.com \
--to=spam@mouse-potato.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.