From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24964 invoked from network); 18 Jun 2008 08:55:15 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 18 Jun 2008 08:55:15 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 73227 invoked from network); 18 Jun 2008 08:55:09 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 18 Jun 2008 08:55:09 -0000 Received: (qmail 21394 invoked by alias); 18 Jun 2008 08:55:05 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25206 Received: (qmail 21381 invoked from network); 18 Jun 2008 08:55:05 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 18 Jun 2008 08:55:05 -0000 Received: from uucp.gnuu.de (banki.eumelnet.de [83.246.114.63]) by bifrost.dotsrc.org (Postfix) with ESMTP id 3D41C8084FA0 for ; Wed, 18 Jun 2008 10:55:02 +0200 (CEST) Received: by uucp.gnuu.de (Postfix, from userid 10) id 96F7A4880B2; Wed, 18 Jun 2008 10:55:01 +0200 (CEST) Received: from news by alea.gnuu.de with local (Exim 4.63) (envelope-from ) id 1K8tLj-0008Bc-Lu for zsh-workers@sunsite.dk; Wed, 18 Jun 2008 10:49:03 +0200 To: zsh-workers@sunsite.dk Path: not-for-mail From: =?UTF-8?Q?J=C3=B6rg?= Sommer Newsgroups: local.mailinglist.zsh Subject: Re: environment settings Date: Wed, 18 Jun 2008 08:49:03 +0000 (UTC) Message-ID: References: <20080616074651.GB26165@marcus> <20080616080556.GA5091@sc.homeunix.net> <20080616123045.GC26165@marcus> <20080616124450.GC5091@sc.homeunix.net> <20080617093859.GB5016@sc.homeunix.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: alea.gnuu.de 1213778943 31452 192.168.0.5 (18 Jun 2008 08:49:03 GMT) X-Complaints-To: usenet@alea.gnuu.de User-Agent: slrn/pre0.9.9-111 (Linux) Sender: news X-Virus-Scanned: ClamAV 0.92.1/7498/Wed Jun 18 04:08:00 2008 on bifrost X-Virus-Status: Clean Hi Stephane, Stephane Chazelas wrote: > On Tue, Jun 17, 2008 at 08:33:02AM +0000, Jörg Sommer wrote: > [...] >> > Which in a way makes sense though is not very useful. ~/.zshrc >> > is your shell configuration file. ~/.zprofile is you session >> > configuration file. >> > >> > Generally, in ~/.zshrc, you put stuff that affects the behavior >> > of interactive shells (sets shell options, defines shell >> > aliases, configure completions). >> > >> > In ~/.zprofile, you define what affects any process started in >> > your session not necessarily only the shell processes. >> >> And what's the meaning of .zshenv? I use it for my environment variables >> like EDITOR, because my session is started by X. > [...] > > Your X login procedure should source your .zprofile How should this work? How can a binary program or a Perl script source a shell file? > .zshenv is to fix up situations where it's not possible in my > opinion. It's like the SHELLOPTS, BASH_ENV variables with bash > or ENV with some kshs, it should be used with extreme care and > probably not permanently. That .zshenv is evaluated by every script is usable for me, because I set (or update) the value of http_proxy and ftp_proxy there. Their current value get's written to a file by a system script and I read these values in .zshenv. Bye, Jörg. -- Es liegt in der Natur des Menschen, vernünftig zu denken und unlogisch zu handeln! Das Gesagte ist nicht das Gemeinte und das Gehörte nicht das Verstandene!