From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id 1EA0823C14 for ; Wed, 12 Jun 2024 20:28:57 +0200 (CEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1718216937; b=RSq7Yl0e586/Ob+QIMZkQE/4FECpYTN+v1PbkXZQc8XVUT+82L3IcGsIgcYOrWoLm4ddA+Qxng eiJvhfTfrVnGyJxkGzWPxSpmA9yyAfoEz07pJEpWKp5CC4WeBMpG/5KjmINU55BvI+dJq6zn6T BynFfBqlm1reU66vhIMxr6AzRxXiT3WQyIzNI7gZvVUmvphqldzfTQWGREyvpGY0gWiQnHTCjT 0f+PEskVyyzr27V1od3pB9czT7EyyUeJmGCrU/+6zYPN6Lqb36uIfAs4kbwvn5CE003Mi7YmCP 2oWJ+fgkoVPL9qV/gauahBNTZu76LAu3Q9a0g7hUEOy63Q==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta03.eastlink.ca) smtp.remote-ip=24.224.136.9; dmarc=none header.from=eastlink.ca; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1718216937; bh=1zHkYYDIKKoqmncaaZ3lqCuYXfRZlSZ5WUbRGwUAbVw=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:From:References:To:Subject:MIME-Version:Date: Message-ID:Content-Type:DKIM-Signature; b=QpL7ow2WP7VB6dHdaLlb+cLdzPt4OHR6OSKSXB9AjD5wibHzyr/qAEwYL9S8fgQRE+f/k26age 8AWmAg7KMXiZ/VWgj+IEA40o0QIYzbQh0aRs32xymf5RLPuH5LOk7+h5TYOUqZjHw4xikYg8p9 wKupAXEatpHyCHzdctR9wks+aLFZBjpsdALEK5p0o9LcYVwX4qo8gMZjhEH7hoEJNcwg7WMzwP 6A/ARzsJ59tgmRc97iUcybK4rUp5XLN20q3sTb3wr3Y1vS/UYX4Gm/IBNv2C6Ww0wPYgVHEDX8 H1J8vnDihHxRFNk0s6nNYmZsXB7xwMh02s+ftVu7nmy1qw==; 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:In-reply-to:From:References:To: Subject:MIME-version:Date:Message-id:Content-type:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=FaNo2/zHFakQKT7lcIWbCdvsNIbcQFrZqSMnjHb8u0Q=; b=DFGlDpnrFw1dgivRyE3F/szrbP DxGhQTJ47qXle5WAV4y6fGJ2j+kC4orDtT+2KZoSIWd2L/T8AdJc+ONNAIprVHz3rvFSEv8N0pnAc NW/fD7CdYNtbvKAJIfv/3B7PiBMixtxTSB5O4vEF6xRQhB5VBigK9k9M7hyeuUTxPYLiAg7afwnkh 40JO39UHIgwQDFIkSVC/pdY+oONrw+RbQOQDhLjyh5L7/jqcTSvlBYYhfbBBqNK6u4cE3gXcFVct0 m5t5Pr3B4zun90FHQpI8Mn+ym/UM2JVFn4Du+HVpfPjA+ABAOdaTxwsN+k30awTSmW/Olu+6PkYf1 IIUIxVHg==; Received: by zero.zsh.org with local id 1sHSiP-000JSz-Dx; Wed, 12 Jun 2024 18:28:57 +0000 Authentication-Results: zsh.org; iprev=pass (mta03.eastlink.ca) smtp.remote-ip=24.224.136.9; dmarc=none header.from=eastlink.ca; arc=none Received: from mta03.eastlink.ca ([24.224.136.9]:59933) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1sHShh-000InD-8r; Wed, 12 Jun 2024 18:28:13 +0000 Received: from csp02.eastlink.ca ([71.7.199.167]) by mta03.eastlink.ca ([24.224.136.9]) with ESMTPS id <0SEZ0FRIHC9CDHX0@mta03.eastlink.ca> for zsh-users@zsh.org; Wed, 12 Jun 2024 15:28:11 -0300 (ADT) Received: from [192.168.0.15] (host-24-207-19-13.public.eastlink.ca [24.207.19.13]) by csp02.eastlink.ca ([71.7.199.167]) with ESMTPSA id HShfscHXS08rzHShfsamvb (version=TLSv1_2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256); Wed, 12 Jun 2024 15:28:11 -0300 X-Authority-Analysis: v=2.4 cv=b+UR4cGx c=1 sm=1 tr=0 ts=6669e8bb a=e7T7DzMKK1R988ZCg0wLyw==:117 a=e7T7DzMKK1R988ZCg0wLyw==:17 a=r77TgQKjGQsHNAKrUKIA:9 a=9OJLRr-EH7Dightv_xwA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=pGLkceISAAAA:8 a=cd79iNyfFBVnLxG8-uQA:9 a=2uZrDwYOF3iaqNHa:21 a=_W_S_7VecoQA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfedugedguddvfecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpegtkfffgggfuffvfhfhjgesrgdtreertddvjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecuggftrfgrthhtvghrnhephfettefhveeguedvleeggfdvvedufeeuudffvdfgledvvdfgtdeigeeuueelieefnecukfhppedvgedrvddtjedrudelrddufeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrudelrddufedphhgvlhhopegludelvddrudeikedrtddrudehngdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdpnhgspghrtghpthhtohepvddprhgtphhtthhopeerredprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgpdhgvghtqdgkihhprfgrshhsfigupehtrhhuvg X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Content-type: multipart/alternative; boundary="------------ZI2Tf9Ay8RTvyTMO3ljDOQW8" Message-id: Date: Wed, 12 Jun 2024 11:28:10 -0700 MIME-version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: How to delete .*.~undo-tree~ files? To: zsh-users@zsh.org References: <87wmmu79zu.fsf@example.com> <87a5jq73p0.fsf@example.com> <875xue72af.fsf@example.com> Content-language: en-US From: Ray Andrews In-reply-to: X-Seq: 30028 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: This is a multi-part message in MIME format. --------------ZI2Tf9Ay8RTvyTMO3ljDOQW8 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2024-06-12 10:46, Mark J. Reed wrote: > > Which ties back into those expectations from other languages that Marc > mentioned. It's important to remember that, unlike in those languages, > quotation marks are not token delimiters in the shell. They don't > terminate the current shell /word/ (what other languages would just > call a "string"); you can go in and out of quotes, switch kinds of > quotes, etc. as often as you like within a single word. > > So .*.'~undo-tree~' is still just one string, even though only part of > it is in quotation marks.  The part in quotes is not subject to glob > expansion; the part not in quotes is. Pure curiosity, I have no problem to solve, but supposing you did want to break the string up, I suppose you'd have to use an array? Then perhaps manipulate the elements/words as desired, then recombine? --------------ZI2Tf9Ay8RTvyTMO3ljDOQW8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

On 2024-06-12 10:46, Mark J. Reed wrote:

Which ties back into those expectations from other languages that Marc mentioned. It's important to remember that, unlike in those languages, quotation marks are not token delimiters in the shell. They don't terminate the current shell word (what other languages would just call a "string"); you can go in and out of quotes, switch kinds of quotes, etc. as often as you like within a single word.

So .*.'~undo-tree~' is still just one string, even though only part of it is in quotation marks.  The part in quotes is not subject to glob expansion; the part not in quotes is.

Pure curiosity, I have no problem to solve, but supposing you did want to break the string up, I suppose you'd have to use an array?  Then perhaps manipulate the elements/words as desired, then recombine? 

--------------ZI2Tf9Ay8RTvyTMO3ljDOQW8--