From: Timothy J Luoma <public+Lists/Unix/Zsh/Users@fdt.net>
To: "Larry P . Schrof" <schrof@cig.mot.com>
Cc: zsh-users@sunsite.auc.dk
Subject: Re: zsh and login shells.
Date: Fri, 12 Feb 1999 21:46:22 -0500 [thread overview]
Message-ID: <199902130246.VAA10174@ocalhost> (raw)
In-Reply-To: <199902122123.QAA05026@po_box.cig.mot.com>
Author: "Larry P . Schrof" <schrof@cig.mot.com>
Date: Fri, 12 Feb 1999 15:22:16 -0600
ID: <199902122123.QAA05026@po_box.cig.mot.com>
> [ -f ${HOME}/loc/bin/zsh ] && exec ${HOME}/loc/bin/zsh -l
>
> in my .login (and made .login executable).
>
> However, upon logging in, I simply get the ksh prompt, as if the
> conditional statement evaluated to false. When running this on the
> command line, it works just fine.
>
> I know the system ksh was reading my old .login file before I
> moved it out of the way and put in the (simple) new one.
What would happen when zsh starts and processes .login ?
Also, the condition should not be '-f', I would suggest something like this
check that it IS executable
and NOT a directory
and NOT a link
if [ -x ${HOME}/loc/bin/zsh \
-a ! -d ${HOME}/loc/bin/zsh \
-a ! -h ${HOME}/loc/bin/zsh ]; then
exec ${HOME}/loc/bin/zsh -l
fi
I would try putting that in .kshrc or equivalent.
(on 2nd thought, that may not be ksh syntax)
Can you change your shell to /bin/sh and put the above in .profile and see
if that works?
If you wanted to be more verbose:
if [ -x ${HOME}/loc/bin/zsh \
-a ! -d ${HOME}/loc/bin/zsh \
-a ! -h ${HOME}/loc/bin/zsh ]; then
exec ${HOME}/loc/bin/zsh -l
else
if [ -f ${HOME}/loc/bin/zsh ]; then
echo ${HOME}/loc/bin/zsh exists
else
echo ${HOME}/loc/bin/zsh not found
fi
if [ -d ${HOME}/loc/bin/zsh ]; then
echo ${HOME}/loc/bin/zsh is a directory
fi
if [ -h ${HOME}/loc/bin/zsh ]; then
echo ${HOME}/loc/bin/zsh is a link
fi
fi
next prev parent reply other threads:[~1999-02-13 2:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-02-12 21:22 Larry P . Schrof
1999-02-13 2:46 ` Timothy J Luoma [this message]
1999-02-13 7:14 ` Bart Schaefer
1999-02-15 15:12 ` Larry P . Schrof
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=199902130246.VAA10174@ocalhost \
--to=public+lists/unix/zsh/users@fdt.net \
--cc=schrof@cig.mot.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).