Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jan 2000 22:23:52 +0100 (CET)
From:      Oliver Fromme <olli@dorifer.heim3.tu-clausthal.de>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: aliases and zsh cont'd
Message-ID:  <200001202123.WAA04518@dorifer.heim3.tu-clausthal.de>
In-Reply-To: <86757j$1da9$1@atlantis.rz.tu-clausthal.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Jonathon McKitrick <jcm@dogma.freebsd-uk.eu.org> wrote in list.freebsd-questions:
 > Well, i've narrowed it down with echo statements in all my config
 > files.  Here is the really bizarre part: when i su to root, i have to
 > use su -l, and it executes .profile, NOT .zprofile, but .profile
 > (which is for bash, right?)

.profile is sh (So I guess you're using "su -l toor" or
something, because root has a csh as login shell, no sh).

 > I read the man page, and it says NOTHING
 > about .profile being executed, only .zprofile.

Correct, zsh reads .zprofile by default (among others).

 > Why is this file being
 > executed, and why does -m clobber my alias settings?  All the other
 > env variables stay the same with the im option.

What version of the zsh is that?  The latest is 3.0.7.
It works for me (using "su -m").

Regards
   Oliver

-- 
Oliver Fromme, Leibnizstr. 18/61, 38678 Clausthal, Germany
(Info: finger userinfo:olli@dorifer.heim3.tu-clausthal.de)

"In jedem Stück Kohle wartet ein Diamant auf seine Geburt"
                                         (Terry Pratchett)


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001202123.WAA04518>