Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: $userdirs empty in non-interactive shells
- X-seq: zsh-workers 42095
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: $userdirs empty in non-interactive shells
- Date: Fri, 08 Dec 2017 12:31:50 +0000
- Cms-type: 201P
- Dkim-filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20171208123155euoutp01a6aade6c40efc98634f93ef56f93e4b5~_Uan1K3nZ2468124681euoutp019
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1512736315; bh=QP+7PLiR0i/c2Ncduis86brKIqQ5drjyNBsm17tCDhs=; h=Date:From:To:Subject:In-reply-to:References:From; b=gS07SICP6buF00smyep3rDNbU13QWj9Bt9uwOfx1p758CdSVA4CqFSSJm0ypIkG5T auxQqwAaJOZVee6y7nUBv7aRwQWIk1WdcP9JFeRX2dO3uSW5gIMUocBHZXpku8W5PS O/xfkCucdAC/+LMrI7poZ0sOyyUhCUTsX3cRU+7Y=
- In-reply-to: <20171208122345.GA28235@chaz.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Organization: Samsung Cambridge Solution Centre
- References: <20171207112950.GA8258@chaz.gmail.com> <CGME20171208122440epcas1p4913876f88a2aa9fae2c22caa978d2c9e@epcas1p4.samsung.com> <20171208122345.GA28235@chaz.gmail.com>
On Fri, 8 Dec 2017 12:23:46 +0000
Stephane Chazelas <stephane.chazelas@xxxxxxxxx> wrote:
> BTW, I just realised that named dirs in variables took precedence
> over user home dirs:
>
> $ zsh -fc 'cd -P -- ~bin && pwd'
> /bin
> $ bin=/tmp zsh -fc 'cd -P -- ~bin && pwd'
> /tmp
>
> Is that intentional?
Yes, it allows you to override locations associated with users without
jumping through lots of hoops.
Strictly you probably need to be able to turn off variable hashing as
directories entirely in POSIX mode.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author