zsh-users
 help / color / mirror / code / Atom feed
From: Zefram <zefram@fysh.org>
To: schaefer@candle.brasslantern.com (Bart Schaefer)
Cc: olsenc@ichips.intel.com, zsh-users@sunsite.auc.dk
Subject: Re: "exec zsh" inside .zprofile doesn't set SHELL
Date: Wed, 22 Sep 1999 11:30:54 +0100 (BST)	[thread overview]
Message-ID: <E11Tjfq-0005vk-00@crucigera.fysh.org> (raw)
In-Reply-To: <990922085717.ZM16212@candle.brasslantern.com> from Bart Schaefer at "Sep 22, 1999  8:57:17 am"

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


      reply	other threads:[~1999-09-22 10:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <19990921150657.A14612@ichips.intel.com>
     [not found] ` <990921223441.ZM15797@candle.brasslantern.com>
     [not found]   ` <19990921163747.A19650@ichips.intel.com>
     [not found]     ` <990922002045.ZM15869@candle.brasslantern.com>
     [not found]       ` <19990921173438.B37706@ichips.intel.com>
     [not found]         ` <990922051813.ZM15980@candle.brasslantern.com>
     [not found]           ` <19990922001426.B16998@ichips.intel.com>
1999-09-22  8:57             ` Bart Schaefer
1999-09-22 10:30               ` Zefram [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E11Tjfq-0005vk-00@crucigera.fysh.org \
    --to=zefram@fysh.org \
    --cc=olsenc@ichips.intel.com \
    --cc=schaefer@candle.brasslantern.com \
    --cc=zsh-users@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).