Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: $userdirs empty in non-interactive shells
- X-seq: zsh-workers 42096
- From: Stephane Chazelas <stephane.chazelas@xxxxxxxxx>
- To: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- Subject: Re: $userdirs empty in non-interactive shells
- Date: Fri, 8 Dec 2017 19:46:52 +0000
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=fsn04P2PEsLo2AfJjLMxWqb+/ZRNOYOKmiE1Rthn/RU=; b=rbuY+uIFIQjVpp0pnwzaPDzsz9qztn+tri7jHNHheC5TkupeyEy/25+oXQUP98YFoV keSa2THKC5+c8GfOazHS6mEpj60JfKNQOXuXP9Y6PSZoSBu5YeIEp97TABmWAGUZuYSZ hoGB919VJyPA6cEofeY35VlJw75dYBZqMMqTbTF8BNWLslC8bQHj4BluNUtI60f1aN8s wRK8MIRDPBZ6rBUy+JlYvpVjL1sJlTQtA/frDGlfKeQsoI/5L8QPLuuy2sxnAJ3MoIix 4WLEt9gv5+muPOBlXo2+M+8Nx+0ExPfAMG2/CjGfAMwj2TQ4B6uUnDP6euNNZzlMHjXe De6w==
- In-reply-to: <20171208123150.576c59b6@pwslap01u.europe.root.pri>
- 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>
- Mail-followup-to: Peter Stephenson <p.stephenson@xxxxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20171207112950.GA8258@chaz.gmail.com> <CGME20171208122440epcas1p4913876f88a2aa9fae2c22caa978d2c9e@epcas1p4.samsung.com> <20171208122345.GA28235@chaz.gmail.com> <20171208123150.576c59b6@pwslap01u.europe.root.pri>
2017-12-08 12:31:50 +0000, Peter Stephenson:
> 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.
[...]
Ah OK.
What would be a typical use case?
Is that the reason why named dirs were introduced in the first place?
--
Stephane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author