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 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 3678 invoked from network); 27 Oct 2022 00:37:55 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 27 Oct 2022 00:37:55 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:Subject:Cc:To:From:Date:References:In-Reply-To:Message-Id: Mime-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=q32y6mi7SSvIO+Fr3PBlTA1yl3EfCrIzQ/EcCOC+t78=; b=cKa75iXB5mzAswxjrgWKiS+DGm sjg0NnmdpllwyeVz5qQnJkYldFUuUgSsTy/YAvj/fe9CnPc2w14PZrKKkno5BDIRDdr4/jLcqUm44 8UKtxUPXzdomZ3wtyU+GsGhIRKDilhiRyF3LQC/JW9/y0J3wG1DfUM4nLGDMPX0Lj5svUHk9Q8aUz IWQezWARolBPg2KbOad3ymgh4bg0NBQno+N5Mi4ixJZSNo3yleZXUz0/ZQdOWUi/yxyk5EvhcjmEm 2UGzK08GC4WCAUlNLFuPoyhvCym3iWrEKU4CJjoKiEBPw4MK6bAUiOjCQ8KtBQBz7Wx38cFr/rsX+ BBBIMKQQ==; Received: by zero.zsh.org with local id 1onquA-0008uy-QL; Thu, 27 Oct 2022 00:37:54 +0000 Received: by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1onqtV-0008ER-Kk; Thu, 27 Oct 2022 00:37:13 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id 6C35F27C0054; Wed, 26 Oct 2022 20:37:10 -0400 (EDT) Received: from imap48 ([10.202.2.98]) by compute2.internal (MEProxy); Wed, 26 Oct 2022 20:37:10 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrtdefgdefjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgfgsehtqhertderreejnecuhfhrohhmpefnrgif rhgvnhgtvgcugggvlhojiihquhgviicuoehlrghrrhihvhesiihshhdrohhrgheqnecugg ftrfgrthhtvghrnhepheegieduieegvddvffdvgeefuddugfetvdettddtfedutdejvefg jefgveethedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homheplhgrrhhrhihvodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdduudeh udekjeejtdegqdduudelvdejfeekhedqlhgrrhhrhihvpeepiihshhdrohhrghesfhgrsh htmhgrihhlrdgtohhm X-ME-Proxy: Feedback-ID: iaa214773:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 41F3631A0062; Wed, 26 Oct 2022 20:37:10 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-1087-g968661d8e1-fm-20221021.001-g968661d8 Mime-Version: 1.0 Message-Id: <93794d01-8f2c-4f3f-8729-695d47c82682@app.fastmail.com> In-Reply-To: References: <69b17354-ba70-5e88-2d89-1306fe4e8795@eastlink.ca> <9ff6d6a4-338c-4797-887f-c557eccfb020@app.fastmail.com> <8276c2d0-5824-c02e-d493-b801b2b4a225@eastlink.ca> Date: Wed, 26 Oct 2022 20:36:47 -0400 From: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= To: "Ray Andrews" Cc: zsh-users@zsh.org Subject: Re: can print but not assign to variable Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Seq: 28278 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On Wed, Oct 26, 2022, at 8:00 PM, Ray Andrews wrote: >> With EXTENDED_GLOB enabled, "#i" is treated as a glob, but this >> fails because it is an invalid pattern. >> >> % setopt EXTENDED_GLOB >> % var=3D(#i)$cmd >> zsh: bad pattern: #i >> > I crashed into that.=C2=A0 Sheesh, there's one case where EXTENDED_GLO= B is=20 > limiting.=C2=A0 Very confusing. EXTENDED_GLOB has nothing to do with it. The problem is that var=3D(#flags)pattern is not parsed the way you think it should be, and it ends up being a different command altogether, regardless of the state of EXTENDED_GLOB. (Notice that my NO_EXTENDED_GLOB example *does not work* -- it just quietly does something unintended.) --=20 vq