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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 8749 invoked from network); 2 Aug 2021 14:43:33 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 2 Aug 2021 14:43:33 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1627915413; b=sANj1pJBM8x9FRxecea8yBR1Q1Jte2bffv7CdSkgR1c42lEy6EgkUbeCMYndkwKIeG5YgVK1NI my5SlJHczHaX81umYiO4tBpyLdvaiPQ2Kqm+RbYXYWsRPo6zySoTgKY6ThaZ876mYx+lavKogH +Nb6X/OAwXbWwyYPnMbvQs1v/ZsvvX5y1mxu0uAw3lgoxglXk1Uz/lD742YjzZqltYRn99pTBt Ehc8adGxm8x6g0oyGgHDuCeFDj7QdVwCiSVmVKc+ugkUzazYz8SkkEQ9PBrr0g9rffE+3b25j8 q+x+g8vDWxuqrbFZChqBzPT1ZilS3WJ2V/pLI9513oBx2Q==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (relay8-d.mail.gandi.net) smtp.remote-ip=217.70.183.201; dmarc=none header.from=chazelas.org; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1627915413; bh=FNeD6iadaArbzHce6CRD4KgVbSPmgzlK59ePN8Pt34o=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:MIME-Version:Message-ID:Subject:To:From:Date: DKIM-Signature; b=TbOEc2akq1UFO84CJ7vFNnP3muI/VNa03hmTHtB7frZFoJyd0W7g3IDN/0Cv7l7eOsOKSsYrta lNjnRMx+DWjYQcDeOgrmHJkOOTZzQKYrBNwuIYd8oT7hDaOvEBpWrzVl3cVmVHHLQMQ2hT98kD Km2NVmycD6NbXc0wpI0zjcPitfGKEfswOVyeOLqMeti92Te5CjvnYE/QlGN6+Q2EzN3K1YAb6N vzk1icuUyoLJvkEIuA2SJSXErHc1nAXzo6iY+sCJJHJZQCw5GHzuWzH7V2c8w0eTywx+N4PgoL ArQ3EnjK9Y+hImWIsWl/qpIU6yHSN8aiLQtnqdT+ZqlcuA==; 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-Type:MIME-Version:Message-ID: Subject:To:From:Date:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=cGPESVU4NGC0bBKnTX7WUUt0hsUfH0gtxv/FfvTRU5Q=; b=TxtrBT7yINRiUz50fbSaWtsVfI KQrW99UVHDfiEj51M9nua2gX08JaKnS5XBzuqyNEIAFmIxFr54Tp64mxCacGpj9PNADrlVVYZAiSx Nrcp41KWaK1hiKwDjTJGCqJgHt0idpc1FdVOzXcZTE8Rro4sKkNUuOtpCkUY0Aip7Oz0EHQVH6Qh6 xrig726xIh4eS+MLFFsIRFp9fIuXhY7dQ9TZkvzkGcTpMrX24uAtCQw634II+T7hSFUg5rOOcs7hZ MUrIYO4ZcEL5/uQVZjP828zlqdmbsdow5CHJj/arcPWokOgq6lDlwunh0fZtWZ7enu6RGO/kViRYi FRuE0v6Q==; Received: from authenticated user by zero.zsh.org with local id 1mAZA9-00029r-9m; Mon, 02 Aug 2021 14:43:29 +0000 Authentication-Results: zsh.org; iprev=pass (relay8-d.mail.gandi.net) smtp.remote-ip=217.70.183.201; dmarc=none header.from=chazelas.org; arc=none Received: from relay8-d.mail.gandi.net ([217.70.183.201]:41387) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1mAZ9H-0001Qb-SG; Mon, 02 Aug 2021 14:42:36 +0000 Received: (Authenticated sender: stephane@chazelas.org) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id 393891BF207 for ; Mon, 2 Aug 2021 14:42:34 +0000 (UTC) Date: Mon, 2 Aug 2021 15:42:34 +0100 From: Stephane Chazelas To: Zsh Users List Subject: modifiers applied after e qualifier but before oe? Message-ID: <20210802144234.noab4lvp3pvj7ct6@chazelas.org> Mail-Followup-To: Zsh Users List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Seq: 26832 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: Today I realised that modifiers were applied *before* the expression in the oe['expression'] glob qualifier was evaluated (but after the one in e['expression']): $ echo /etc/issue(e['echo e: $REPLY']oe['echo oe: $REPLY']:t) e: /etc/issue oe: issue issue Is it as intended? I couldn't find it mentioned in the documentation. Is there a way to change that (for oe to see the original path without modification by modifiers) within a single glob? I tried: $ echo /etc/issue(#qe['echo e: $REPLY']oe['echo oe: $REPLY'])(#q:t) e: /etc/issue oe: issue issue didn't help. If not, I can always do: $ () { echo $@:t; } /etc/issue(e['echo e: $REPLY']oe['echo oe: $REPLY']) e: /etc/issue oe: /etc/issue issue That is move the modifiers out of the glob and apply them to parameter expansion. -- Stephane