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 809 invoked from network); 26 Nov 2021 05:47:06 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 26 Nov 2021 05:47:06 -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-Type:Subject:Cc:To:From:Date: References:In-Reply-To:Message-Id:Mime-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=OZEaWBdgK0EsYl3JNeqQjcNRoLvkxS+5DTNdwmAsnTc=; b=NCAovkcCNyPEAYaRSMEBAFfe5b P2ADlj2gf0MmbmRB0qybrBF11xe2J3BevaVp4S92auLiKJ2mXQmnbxxdcRVq7qwxmSeCHE2pwD7yq 3M1P/x96p/z3LtvEzrMhVGrE1U0lyR3DQO0SKgts52/6mwCEmi55Ap33/x4328rCjzM1rFmu+Bf3F LRu54EE8tKz+N7UPQHyJ34aapXAevnVS9ETcEhkTVK2rnZwrDIvhG1vrVXuEhK8LAzKErhGz4TB0k 8LeuqQ5+dLHOZjxq/06QeAq6eJhKNf88OPRix2gsTmmcXTUPncrbPpfzpwi50NZx27TJkcIMjQ1NQ uK4xYlSw==; Received: from authenticated user by zero.zsh.org with local id 1mqU4f-0006ii-M8; Fri, 26 Nov 2021 05:47:05 +0000 Received: from authenticated user by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1mqU4B-000615-Ok; Fri, 26 Nov 2021 05:46:36 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailauth.nyi.internal (Postfix) with ESMTP id 00E1927C005B; Fri, 26 Nov 2021 00:46:34 -0500 (EST) Received: from imap48 ([10.202.2.98]) by compute4.internal (MEProxy); Fri, 26 Nov 2021 00:46:34 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrhedugdekkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgesthdtre dtreerjeenucfhrhhomhepnfgrfihrvghntggvpgggvghljoiiqhhuvgiiuceolhgrrhhr hihvseiishhhrdhorhhgqeenucggtffrrghtthgvrhhnpeevfeeugffgvdelhfelleeuge eitedufeetffdtleduleehgefhiefgieehkedvieenucffohhmrghinhepiihshhdrohhr ghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlrg hrrhihvhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqudduhedukeejjedt gedqudduledvjeefkeehqdhlrghrrhihvheppeiishhhrdhorhhgsehfrghsthhmrghilh drtghomh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id B5C6A21E006E; Fri, 26 Nov 2021 00:46:33 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-1371-g2296cc3491-fm-20211109.003-g2296cc34 Mime-Version: 1.0 Message-Id: In-Reply-To: <20211125210620.6817@sachi> References: <20211125210620.6817@sachi> Date: Fri, 26 Nov 2021 00:46:12 -0500 From: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= To: jdh Cc: zsh-users@zsh.org Subject: Re: How to efficiently allow * in a cml string Content-Type: text/plain X-Seq: 27363 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, Nov 24, 2021, at 12:06 AM, jdh wrote: > Is there some way the invoiked script can reach into the buffer before > zsh complains about the *. > > I've tried: 'unsetop GLOB' but that didn't work. Well yeah, filename expansion happens before the script executes. > Simple example: How can I get a script to do 2*4 in the below simple version: > > $ calculate 2*4 Presumably you won't be satisfied with calculate '2*4' or noglob calculate 2*4 You may want to read through this thread beginning with users/27103, which already covered a lot of the same ground. https://www.zsh.org/mla/users/2021/msg00815.html -- vq