From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3082 invoked from network); 10 Jul 2001 05:28:38 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 10 Jul 2001 05:28:38 -0000 Received: (qmail 4078 invoked by alias); 10 Jul 2001 05:28:17 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4013 Received: (qmail 4066 invoked from network); 10 Jul 2001 05:28:16 -0000 Date: Mon, 9 Jul 2001 22:28:13 -0700 From: Will Yardley To: zsh-users@sunsite.dk Subject: $PATH Message-ID: <20010709222813.B15620@hq.newdream.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i I haven't been able to figure this one out; sorry for asking such a dumb question. I generally put pretty much all my stuff in my .zshrc. i've noticed that if i do something like: PATH=$PATH:/dh/bin or whatever, each time i open a new shell (ie if i type 'zsh') my new shell has the arg appended twice, so it would be something like: yakko% zsh yakko% echo $PATH /usr/bin:/bin:/usr/sbin:/sbin:/dh/bin:/dh/bin however if i open a root shell (ie sudo zsh) using sudo, the path is only appended once (i guess this is treated as a new login shell or whatever). I can solve this by putting the line in my .zprofile or .zlogin instead; however then, when I type 'sudo zsh', the extra item isn't appended at all. if i put it in ~root/.zprofile it doesn't work either. is there a simple solution i'm overlooking here? -will