zsh-users
 help / color / mirror / code / Atom feed
From: gwing@primenet.com.au
To: zsh-users@math.gatech.edu
Cc: mito@sprynet.com
Subject: Re: strange behaviour with .zsh and su
Date: Tue, 15 Apr 1997 02:02:31 +1000 (EST)	[thread overview]
Message-ID: <19970414160231.13271.qmail@primenet.com.au> (raw)
In-Reply-To: <19970414103243.56053@retriever> from Louis-David Mitterrand at "Apr 14, 97 10:32:43 am"

Louis-David Mitterrand wrote:
In zsh.users you write:
:I recently switched to defining a ZSHDOTDIR in /etc/zprofile to
:unclutter my home directory. It works fine when I am logged as a normal
:user but now when I 'su' to root from that account root's .zshrc isn't
:sourced anymore even though I put root's .zshrc into its own ZDOTDIR...
:When I 'su -l' the .zsh/.zshrc is sourced but I'd rather it worked with
:plain 'su' so that I don't change directories.
:Linux, zsh_3.0.3
:export ZSHDOTDIR=.zsh

1. I hope you are using ZDOTDIR, not ZSHDOTDIR
2. /etc/zprofile isn't sourced unless you're in a login shell.  Put your
   ZDOTDIR stuff in /etc/zshenv - that's the only file that can be guaranteed
   to be read for each instance.

I don't understand your full situation.  Eg. where do your startup files
reside and where do root's?  You seem to be implying that if you're in a 
directory, say /foo , then when you su the startup files are in
/foo/.zsh  but if you cd to /bar  then when you su the startup files
are in /bar/.zsh
Is this right?  If not, please clarify the situation.
-- 
Geoff Wing [mason@primenet.com.au]   Technical Manager
  Phone    : +61-3-9818 2977         PrimeNet - Internet Consultancy
  Facsimile: +61-3-9819 3788         Web : <URL:http://www.primenet.com.au/>
  Mobile   : 0412 162 441


  parent reply	other threads:[~1997-04-14 16:08 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-04-14 14:32 Louis-David Mitterrand
1997-04-14 15:06 ` Zefram
1997-04-14 15:47 ` Timothy Luoma
1997-04-14 15:48   ` Louis-David Mitterrand
1997-04-14 16:01     ` Timothy Luoma
1997-04-14 16:14       ` Louis-David Mitterrand
     [not found]         ` <mito@aparima.com>
1997-04-14 16:54           ` Bart Schaefer
1997-04-14 18:20   ` Stefan Monnier
1997-04-14 18:32     ` Richard Coleman
1997-04-14 20:27       ` Stefan Monnier
1997-04-14 18:42     ` Tom Howland
1997-04-14 16:02 ` gwing [this message]
1997-04-14 17:03 ` Stefan Monnier

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=19970414160231.13271.qmail@primenet.com.au \
    --to=gwing@primenet.com.au \
    --cc=mito@sprynet.com \
    --cc=zsh-users@math.gatech.edu \
    /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).