Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: cannot `cd $_` to $_ containing spaces
- X-seq: zsh-workers 47448
- From: Matthew Martin <phy1729@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: cannot `cd $_` to $_ containing spaces
- Date: Tue, 13 Oct 2020 14:47:48 -0500
- Archived-at: <https://zsh.org/workers/47448>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2020-10/20201013194748.GA36504%40CptOrmolo.darkstar>
- Authentication-results: zsh.org; iprev=pass (mail-oi1-f182.google.com) smtp.remote-ip=209.85.167.182; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=gfKMBWhqxrlxYsUJHrQs8uGO4IGMoZQamAipWAN9+FA=; b=HQu1USz419GiOb+fzM9VBh8bzKfpqdUxZVLCvGQ6fBA6qzh9DUu+4l4Rog/jtB2hdA EUbEB3JYTbyBk3VMi0l5vKh3WSLQPb7wMJg/l7dNGRTqh/cLWyxj19Jgr+d0h/AzXQBn 2jD+vZRyy3e0oSahEBjEylmvvZN2ybf2W+tu6kpxKZsBBthbn2Oybeulq0TtgF4VEHrW c56TV64ebFWRvnnKDepVYZBcs0J/quWusq1Qp58cUsISVLy+ieXgxxbJc1A7ltbeIfeQ RewMqIKlvcYGLkywEom/v0SRWoHY4DuqKCKWsQkQafCWKK1t3GPjWMqNLlRV03cCWmcX +LIw==
- In-reply-to: <CAA0W15K=fUvCSabfCADVnp7Gr9P4awsC2KdhjV67K1viDE_nmQ@mail.gmail.com>
- List-archive: <http://www.zsh.org/sympa/arc/zsh-workers>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-workers.zsh.org>
- List-owner: <mailto:zsh-workers-request@zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-workers>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-workers>
- Mail-followup-to: zsh-workers@xxxxxxx
- References: <CAA0W15K=fUvCSabfCADVnp7Gr9P4awsC2KdhjV67K1viDE_nmQ@mail.gmail.com>
- Sender: zsh-workers-request@xxxxxxx
On Tue, Oct 13, 2020 at 12:30:57PM -0700, Soren Roth wrote:
> I made a directory with a space in the name, and tried to cd into it using
> $_, and failed. Just trying to be a good citizen, I wouldn't be surprised
> if this is known or somehow a feature.
>
>
> ~ % mkdir ArcGIS\ SDKs
>
> ~ % cd $_
>
> cd: string not in pwd: ArcGIS
This appears to be an issue with some part of your setup. It works in
zsh -f.
% PROMPT='%% ' zsh -f
% mkdir foo\ bar
% cd $_
% pwd
/home/phy1729/foo bar
Messages sorted by:
Reverse Date,
Date,
Thread,
Author