Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: "exec zsh" inside .zprofile doesn't set SHELL
- X-seq: zsh-users 2612
- From: Zefram <zefram@xxxxxxxx>
- To: schaefer@xxxxxxxxxxxxxxxxxxxxxxx (Bart Schaefer)
- Subject: Re: "exec zsh" inside .zprofile doesn't set SHELL
- Date: Wed, 22 Sep 1999 11:30:54 +0100 (BST)
- Cc: olsenc@xxxxxxxxxxxxxxxx, zsh-users@xxxxxxxxxxxxxx
- In-reply-to: <990922085717.ZM16212@xxxxxxxxxxxxxxxxxxxxxxx> from Bart Schaefer at "Sep 22, 1999 8:57:17 am"
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
Bart Schaefer wrote:
>The problem with testing version numbers is that, whichever way you do the
>equality (equal the old version or not-equal the new one), the wrong thing
>may happen if one or the other gets upgraded. And if for some reason the
>output of =zsh is the path to the old version, you still have a loop. So
...
A better solution -- which I use on all systems, even if they have an
up-to-date zsh installed -- is to make your login shell be /bin/sh,
and have your .profile do the exec zsh. zsh doesn't read the .profile,
so there's no possibility of a loop. /bin/sh is also likely to start
up faster than the system's zsh.
-zefram
Messages sorted by:
Reverse Date,
Date,
Thread,
Author