From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Pascal Bourguignon Newsgroups: gmane.emacs.help Subject: Re: updating shell environment variables Date: 05 Nov 2004 20:45:29 +0100 Organization: [posted via Easynet Spain] Message-ID: <878y9gqduu.fsf@naiad.informatimago.com> References: <2v1lq9F2gfd06U1@uni-berlin.de> <1tOid.10$CR4.1@dfw-service2.ext.ray.com> <2v1vjcF2enbojU1@uni-berlin.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1099684026 10643 80.91.229.6 (5 Nov 2004 19:47:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 5 Nov 2004 19:47:06 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 05 20:46:52 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CQA2u-0004eg-00 for ; Fri, 05 Nov 2004 20:46:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CQAB7-0002qt-7s for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Nov 2004 14:55:21 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!colt.net!easynet-quince!easynet.net!easynet-post2!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Lines: 26 Original-NNTP-Posting-Host: 62.93.174.76 Original-X-Trace: DXC=f7bNRgfT;ol6G`Z1kFU[dm>V:nI?;b`^lK;bf[9]X;Cm Original-Xref: shelby.stanford.edu gnu.emacs.help:126381 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:21770 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:21770 Kevin Rodgers 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__