From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27208 invoked from network); 14 Oct 2020 20:49:38 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 14 Oct 2020 20:49:38 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1602708578; b=Czfd8W0qLAssfPi2DjrGY4ACNyv6+D911WCax9+Yftv5ZzbXSwcLw2Q15VpFtfWr2FYIdoe5Qu AOuhSJ4Jx5UWxKNS2dQmt2xBWpHYo9mxqatDNa5ALVAm+q/LQnqNFhSupZTb/uLesZ7f4lVfRq u8qnJUHSQAKXrjpi9Voant3IJtYG6jzOQSoVUFSeEVtRyipEqB77k5IDpEaAQmumNImgM02S5o qJpFKIKqW9mXCF57CULnPRIiA7OstD2h9WSLzFFtEY28YMoaQucvOyJA3XUIrUQOdz5u/FI1FU vOErmqN2LDMGUgDc71XL7A6icdnZ+D4qZQaa3qk5hzI4iw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (out4-smtp.messagingengine.com) smtp.remote-ip=66.111.4.28; dkim=pass header.d=daniel.shahaf.name header.s=fm1 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1602708578; bh=2IgSGu4avlNGqFMClHqDdZkcE6+/SgVwWTTeIF+Nuxs=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version: References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date:DKIM-Signature: DKIM-Signature:DKIM-Signature; b=o5dhlNTPT+tm9pLcAiNeyfBGAHCZzodiU/PpHWgwNTEPEHXI4MNJenjOVqQLa+IBPNf1WiyS1V XluxCJVoW3Sy6+4m2QB7OGU75Rbi47x0rK8gsRrfi8vBhJwlzTVvmHqUzkzQwqSGcDanDTL3q8 ZVHj0JbTrGXKHkJv5KfKcbFkShe9nt03U1ZaR8DQgLYteN9URKKT0gvRMWZAbxOuRZFVD0mm8D 9PqMP8lKB9d5M60i4lcNhFgRDbGCQbXBT/jYg4DDgqZsj5/MvfGBSe4ACdYTIpJ1eLYpDQskyD 0nIY2Gddbc3whlYzidgn7Gidzzk4OCLn9OeTrgTzKEYjtw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=0s2ezbpwakUeCrew3ijem3aR3I6YPQJeYa6W9QhENrw=; b=H2r8iKyBo0aiP8PtnfbZROWpu+ YQHoW8pKOGF29/KvD4smWY/1A3dygaT0xSTbpQSwYnPV6z4TXNAhQaY1qFZL5oz1O5OSAWlZ1SuJy 1qW+9aSugi3sYbhLIb8tkXMonzBaw+IUfFsbxu7XDXo/Q9360D/85TYY64Wz3idf/IGA+S3UkMtXK MprVvPY1ZN2za66N7A+b4sPEZ2W/H1u3B7MLAewJelJBUMqNI0DfQVIMs94LPJLOycH9WGYe1Okvb bbO3D/0DX1akmfBmQdDyVXf1jcigqIuU+B52d0GCwLeEADiFOVF1YuRDJmOUq4VoFZuFy7bbclcag R8+K/JDQ==; Received: from authenticated user by zero.zsh.org with local id 1kSniM-000Bp1-6n; Wed, 14 Oct 2020 20:49:38 +0000 Authentication-Results: zsh.org; iprev=pass (out4-smtp.messagingengine.com) smtp.remote-ip=66.111.4.28; dkim=pass header.d=daniel.shahaf.name header.s=fm1 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none Received: from out4-smtp.messagingengine.com ([66.111.4.28]:53567) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1kSni9-000Bga-IP; Wed, 14 Oct 2020 20:49:26 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id CB7F05C01F8; Wed, 14 Oct 2020 16:49:24 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Wed, 14 Oct 2020 16:49:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:to:cc:subject:message-id :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=fm1; bh=0s2ezbpwakUeCrew3ijem3aR3I 6YPQJeYa6W9QhENrw=; b=hAGhmtFGHvepDdUrZfyhAQetHx3lewo2q3+LEYf4MZ rOswLAIbNHRbQQCJe1jeoSm9vz2/u+pBa4a0K+gKG7y11IEmfdYTWq+gNkmrAogd 3tksYSHdoZ8NN14WpMce7LjhiKc0Pq/pXGvrpmd+5iOzLJ67IbYCYwr+Cj4zRKLu CD3q3ydJCuciYLlojf3JwnuWswdjUyTn/xCxZ8ohEUVZwHSaoDC6jyZzQccV8iyC ybRgE5Ip9ocmFOTMflN5bian080Pzmp0rtnKaEyPYZL+Ug2JzvSCu9xy0h/11cLM sOuW+/8WHiuHpefqjQX/e2dOe+WT4FqxFyovCeYHb/Xg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=0s2ezbpwakUeCrew3ijem3aR3I6YPQJeYa6W9QhEN rw=; b=PcE2DW/9Xf9QCUiWGdLBBj+3OfAnGFkELY8qfVm3Qr33HreMy/hwm6ZY0 Q3gQF+iRcQQocuZsRKw/iEQgPKX8c/4zWEpRybvO/EknuJ0R3J6UegHjJ2TLqrgF S+7ch2FR55hXEbTCduVQOkR8tNH7AOjFgpBdwbSNswqaIvG3UtUQ7YCxvIY1Jl1k vFKgaVPkhTe79D8jFPHFd9uBDEbU/1e7+wNPmcNpsP+fqFyX9b8HTksGyGaLCWWo 0lJ636uVHywlwY/p9NycAv+Iuw7Ixj8DzlKcVLRcLJ0nH80mvvmPRl7KGhXG2oz1 8Nrtm4pipmTXcZQbRb/JMeRuBMO2Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedriedugdduheegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfgjfhfogggtgfesthhqtddtredtjeenucfhrhhomhepffgrnhhi vghlucfuhhgrhhgrfhcuoegurdhssegurghnihgvlhdrshhhrghhrghfrdhnrghmvgeqne cuggftrfgrthhtvghrnhephfdtteefheevuedthedutdeifeegteettdejtdffheduieei jeelteetkeduteehnecukfhppedutdelrdeiiedrheefrddvleenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegurdhssegurghnihgvlhdrshhh rghhrghfrdhnrghmvg X-ME-Proxy: Received: from tarpaulin.shahaf.local2 (bzq-109-66-53-29.red.bezeqint.net [109.66.53.29]) by mail.messagingengine.com (Postfix) with ESMTPA id 4EE3B3064674; Wed, 14 Oct 2020 16:49:24 -0400 (EDT) Received: from tarpaulin.shahaf.local2 (localhost [IPv6:::1]) by tarpaulin.shahaf.local2 (Postfix) with ESMTP id 4CBPfV71BTzk9; Wed, 14 Oct 2020 20:49:22 +0000 (UTC) Date: Wed, 14 Oct 2020 20:49:21 +0000 From: Daniel Shahaf To: Roman Perepelitsa Cc: Soren Roth , Zsh hackers list Subject: Re: cannot `cd $_` to $_ containing spaces Message-ID: <20201014204921.22cd9cc3@tarpaulin.shahaf.local2> In-Reply-To: References: X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Seq: 47457 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: Roman Perepelitsa wrote on Wed, 14 Oct 2020 09:25 +0200: > On Tue, Oct 13, 2020 at 9:31 PM Soren Roth wrote: > > I made a directory with a space in the name, and tried to cd into it us= ing $_, and failed. =20 >=20 > You probably have the SH_WORD_SPLIT option enabled. This option causes > field splitting to be performed on unquoted parameter expansions, like > in POSIX sh. You can turn it off by adding `unsetopt SH_WORD_SPLIT` to > ~/.zshrc. Otherwise you need to quote parameter expansions to prevent > field splitting (again, like in POSIX sh). >=20 > cd "$_" The SH_WORD_SPLIT option defaults to being disabled, so if you have it enabled, you might wish to check why that's the case in the first place, rather than simply to append an =C2=ABunsetopt=C2=BB to your configu= ration.