zsh-users
 help / color / mirror / code / Atom feed
From: "Christopher Browne" <cbbrowne@gmail.com>
To: "Mikael Magnusson" <mikachu@gmail.com>
Cc: zsh-users@sunsite.dk
Subject: Re: I get tcsh at login; want zsh
Date: Sun, 16 Jul 2006 23:13:17 -0400	[thread overview]
Message-ID: <d6d6637f0607162013w1e180301lb773bc9bfa31544e@mail.gmail.com> (raw)
In-Reply-To: <237967ef0607161709t21c61aafr2dfbf6f447d8ce5a@mail.gmail.com>

On 7/16/06, Mikael Magnusson <mikachu@gmail.com> wrote:
> > What do I need to do to be able to log directly into and directly out
> > of zsh?
>
> Check what startup files are used by tcsh and put 'exec zsh' in it.

While easy to invoke, that mayn't be the wisest approach.

Should there not be a path to zsh, for some reason, you might discover
yourself unable to login anymore.

I'd be *much* more inclined to run some test for existence first, and,
better still, to test that zsh actually works before committing to
"exec zsh"

Thus, a logic like...

if -e /usr/bin/zsh; then
   if /usr/bin/zsh "invoke something that should return true"; then
      exec /usr/bin/zsh
   fi
fi

Perhaps that should involve a search for where zsh is...
-- 
http://www3.sympatico.ca/cbbrowne/linux.html
Oddly enough, this is completely standard behaviour for shells. This
is a roundabout way of saying `don't use combined chains of `&&'s and
`||'s unless you think Gödel's theorem is for sissies'.


  parent reply	other threads:[~2006-07-17  3:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-16 23:28 Russell Hoover
2006-07-17  0:09 ` Mikael Magnusson
2006-07-17  1:58   ` Vincent Lefevre
2006-07-17  3:13   ` Christopher Browne [this message]
2006-07-17  7:08 ` Thorsten Kampe

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=d6d6637f0607162013w1e180301lb773bc9bfa31544e@mail.gmail.com \
    --to=cbbrowne@gmail.com \
    --cc=mikachu@gmail.com \
    --cc=zsh-users@sunsite.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).