From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15205 invoked by alias); 8 Dec 2017 19:47:00 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 42096 Received: (qmail 14738 invoked by uid 1010); 8 Dec 2017 19:47:00 -0000 X-Qmail-Scanner-Diagnostics: from mail-wm0-f54.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(74.125.82.54):SA:0(-1.9/5.0):. Processed in 1.2735 secs); 08 Dec 2017 19:47:00 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: stephane.chazelas@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state: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=qNLqhKkwMnMe7B3OQHxfA3qkBhTKxHhr2nu7P8iP8lGvS89oK2srjcA7Atdu4wyYO9 CB/wxpT/oabXbdWCXe451CthHitMHW4EYTXz/TIMUq8GG/u2IN8lr0atzlCUUXJyL5yV 7lcs6llK6tUhy66CruNMzmVNZpkrulWuJZwGF6QT7ryUBODBvAq5AoDXGhfxX1fCE2qk f3BEoMzJmcV/kRltcE6wIg4VImnclxE+jrJdJnCP1ce/NXjJ3uOgskD7G2IVggwWTZfD ve4NHMNT7WmM5li0VEvWpiVH1cgEIO1VlC1V5Bc44fkyltTexQs7bYilD6qDiRsojfmS /mPQ== X-Gm-Message-State: AKGB3mJyoY/gSHqv4x2JT4ll0XO+pCOaE1VZZiDkUbZqg3Iadfk0NPkZ v2Wi884PisOL4xjomqsV5bk= X-Google-Smtp-Source: AGs4zMYPPjirrXXoN0d7Fj0vAQMQEnrM8BeJKU3cvolf7O4/lh//1zLbwv6F8KgUdSovq6yxeBuluw== X-Received: by 10.28.157.7 with SMTP id g7mr4510580wme.89.1512762414824; Fri, 08 Dec 2017 11:46:54 -0800 (PST) Date: Fri, 8 Dec 2017 19:46:52 +0000 From: Stephane Chazelas To: Peter Stephenson Cc: Zsh hackers list Subject: Re: $userdirs empty in non-interactive shells Message-ID: <20171208194652.GB28235@chaz.gmail.com> Mail-Followup-To: Peter Stephenson , Zsh hackers list References: <20171207112950.GA8258@chaz.gmail.com> <20171208122345.GA28235@chaz.gmail.com> <20171208123150.576c59b6@pwslap01u.europe.root.pri> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171208123150.576c59b6@pwslap01u.europe.root.pri> User-Agent: Mutt/1.5.24 (2015-08-30) 2017-12-08 12:31:50 +0000, Peter Stephenson: > On Fri, 8 Dec 2017 12:23:46 +0000 > Stephane Chazelas 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