From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2568 invoked from network); 8 Sep 2003 22:16:31 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 8 Sep 2003 22:16:31 -0000 Received: (qmail 21043 invoked by alias); 8 Sep 2003 22:16:17 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6545 Received: (qmail 21031 invoked from network); 8 Sep 2003 22:16:16 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 8 Sep 2003 22:16:16 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [217.174.194.138] by sunsite.dk (MessageWall 1.0.8) with SMTP; 8 Sep 2003 22:16:15 -0000 Received: from DervishD.pleyades.net (212.Red-80-35-44.pooles.rima-tde.net [80.35.44.212]) by madrid10.amenworld.com (8.10.2/8.10.2) with ESMTP id h88MG5u28320; Tue, 9 Sep 2003 00:16:05 +0200 Received: from raul@pleyades.net by DervishD.pleyades.net with local (Exim MTA 2.05) id <19wU4C-00004h-00>; Tue, 9 Sep 2003 00:01:00 +0200 Date: Tue, 9 Sep 2003 00:01:00 +0200 From: DervishD To: Dan Nelson Cc: Wayne Davison , Bart Schaefer , zsh-users@sunsite.dk Subject: Re: ~/.zshenv or ~/.zprofile Message-ID: <20030908220100.GA277@DervishD> Mail-Followup-To: Dan Nelson , Wayne Davison , Bart Schaefer , zsh-users@sunsite.dk References: <20030803221858.GA2720@puritan.pcp.ath.cx> <20030803223949.GA18476@binome.blorf.net> <1030804060015.ZM15706@candle.brasslantern.com> <20030907175710.GA28613@binome.blorf.net> <20030907212433.GA233@DervishD> <20030908032728.GH48339@dan.emsphone.com> <20030908094540.GB51@DervishD> <20030908155701.GJ48339@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20030908155701.GJ48339@dan.emsphone.com> User-Agent: Mutt/1.4i Organization: Pleyades User-Agent: Mutt/1.4i Hi Dan :) * Dan Nelson dixit: > > [[ -z "$path" ]] && path=(mypath $path) > > typeset -U path > That won't work because cron and /usr/bin/login give you a minimal > PATH. You could have it test another variable like "NODEFAULTPATH" or > something. In fact, that won't work because the OK will give you a minimal PATH (at least under Linux), and even /sbin/init will provide a more sophisticated one. The best solution is to test for SHLVL or, just as you say, set NODEFAULTPATH or another variable acting as a marker. Raúl Núñez de Arenas Coronado -- Linux Registered User 88736 http://www.pleyades.net & http://raul.pleyades.net/