Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ~/.zshenv or ~/.zprofile
- X-seq: zsh-users 6545
- From: DervishD <raul@xxxxxxxxxxxx>
- To: Dan Nelson <dnelson@xxxxxxxxxxxxxxx>
- Subject: Re: ~/.zshenv or ~/.zprofile
- Date: Tue, 9 Sep 2003 00:01:00 +0200
- Cc: Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx>, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, zsh-users@xxxxxxxxxx
- In-reply-to: <20030908155701.GJ48339@xxxxxxxxxxxxxxxx>
- Mail-followup-to: Dan Nelson <dnelson@xxxxxxxxxxxxxxx>, Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx>, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: Pleyades
- References: <20030803221858.GA2720@xxxxxxxxxxxxxxxxxx> <20030803223949.GA18476@xxxxxxxxxxxxxxxx> <1030804060015.ZM15706@xxxxxxxxxxxxxxxxxxxxxxx> <20030907175710.GA28613@xxxxxxxxxxxxxxxx> <20030907212433.GA233@DervishD> <20030908032728.GH48339@xxxxxxxxxxxxxxxx> <20030908094540.GB51@DervishD> <20030908155701.GJ48339@xxxxxxxxxxxxxxxx>
Hi Dan :)
* Dan Nelson <dnelson@xxxxxxxxxxxxxxx> 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/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author