Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh does not start in $HOME
- X-seq: zsh-users 13225
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: zsh does not start in $HOME
- Date: Tue, 16 Sep 2008 07:59:11 -0700
- In-reply-to: <20080916072757.GB22792@xxxxxxxxxx>Comments: In reply to Stephan Windmüller <stephan.windmueller@xxxxxxxxxxxxxxxxx> "Re: zsh does not start in $HOME" (Sep 16, 9:27am)
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20080908080918.GC25826@xxxxxxxxxx> <20080908095104.7123e5f9@news01> <20080908091856.GD25826@xxxxxxxxxx> <080908073943.ZM15568@xxxxxxxxxxxxxxxxxxxxxx> <20080915133250.GC17452@xxxxxxxxxx> <080915073455.ZM24404@xxxxxxxxxxxxxxxxxxxxxx> <20080916072757.GB22792@xxxxxxxxxx>
On Sep 16, 9:27am, Stephan Windmüller wrote:
}
} /etc/passwd does not contain an entry for my user.
Well, the NIS passwd map then, or the LDAP entry for your user, or ...
What's "print $HOME" say? Zsh has to be getting /home/username from
this code in Src/init.c:
if ((pswd = getpwuid(cached_uid))) {
if (emulation == EMULATE_ZSH)
home = metafy(pswd->pw_dir, -1, META_DUP);
cached_username = ztrdup(pswd->pw_name);
}
It then initializes $PWD from $HOME, and "pwd" without the -P simply
prints $PWD.
} On Mon, 15. Sep 2008, Bart Schaefer wrote:
} > That indicates to me that:
} > -- there is a symlink from /home/username to /ldaphome/username
}
} No, both are separate directories.
There's a test ispwd() which checks to see whether the directory named
by $HOME is the same as the current directory, which it does by calling
stat() and examining the inode and device numbers. This test has to be
returning success, so zsh disputes your assertion.
Run stat or zstat on the two directories and look at the device and
inode numbers.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author