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,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 DE5BF29E99 for ; Wed, 12 Jun 2024 20:49:15 +0200 (CEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1718218155; b=FlLonq8guU6r3bUW+ri+L7R3djvueizQ1XB6jSQOHHcyiqN/WpnQsOMe7O/loFkgDN+3oAhcwa /7Aiug6IUC3kCzUEf9RQWQ70N66thivn5NiTzTZSfRZ4PwzDkespkJc6hkb3nLF7pivOm7xYLi VPwsxoy01FB5aRtWr0dm/YLsxoX+4+pHT+qaaFzgIM+rtKcuW9QUmok7rszGFZ/j3QGtfRALRY baGQYsRWzlhRebGwnzjY66RxsMvFkS9cloJwBN/iP+PDvm4974RXPqJ0RYiu5F5s+E/xYCFt6P 5GZgb1ppHcSlVOGhYMe1jD34N58oHjU96xH1OlnAiFvrNQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f41.google.com) smtp.remote-ip=209.85.218.41; dkim=pass header.d=brasslantern-com.20230601.gappssmtp.com header.s=20230601 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1718218155; bh=R/7voUh7UB81LtwScbvmidMBOCKugjImJOnCKniFXqE=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Cc:To:Subject: Message-ID:Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature: DKIM-Signature; b=I+hUV+5sdrP1Gqy1dD0hx4f0H60wctvvE6k7R1mTIIuUjlhB5W4fUOkKRxnSUObb+I//vOvakp vhRuHrHfRAiTCdigfYFxDmWT/y99sI5axG8isva5MCEiqgdyKcINlPCBRew5ceXWX6dxAWFBmV YXty8ZV3pxe92lopZVjuHYvqaZ7vNhgmfOPmDbycl+MXBNRohOBJOeACl3dlj9PamwFuL+jYxH i/yUIGQXZw4YRZ/BdKJCXUESBLFZRcIAaih872AUOJk/G28MD9I5eJG18WeZv7xlf6kfRpV8dI wFHN4hHvhkLiW5nkV/fI4tI3+xt/fpWZ61YGkQSD4tbxkA==; 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:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=8XGjHFVtMXM4kbZNCT5DxmbYE2wR0st9n/KD1Z9glHc=; b=KjIXVEDTLvYlaDnVMIWQ8RuIth tU8C6m14NRC4W8CR/Jg3kmTZtGqBVDa6uwBhHlWOt3zsVkFNX5GG1idhzNnpO4mz+Fk8BcsgRkfMu 5ZL+g2cnhBZ8uOZNGxPkT4g+lN7yhaapBfz83rUhPWjtghxVod0zUi7kJazsSdaWA1YNVF6CBGJZ6 umBmhDJjfyLxHJQAx5U1C7Kl8rO4h7BwHS3UxjIj1i8/vAunWi6qlr/qZN9t0foW0XLzfLQUmYCcb jZ/q8ulQubmNO1EZMMeuevh//f5gqut4dKKNfYZe+sx9NSVOc7W9kU7J3Nx3D0ld/vvQNI8MxKtDj 1WIIswPA==; Received: by zero.zsh.org with local id 1sHT22-000LN7-Pn; Wed, 12 Jun 2024 18:49:14 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f41.google.com) smtp.remote-ip=209.85.218.41; dkim=pass header.d=brasslantern-com.20230601.gappssmtp.com header.s=20230601 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ej1-f41.google.com ([209.85.218.41]:44086) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1sHT1N-000Kf3-0E; Wed, 12 Jun 2024 18:48:35 +0000 Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a6f0e153eddso33528866b.0 for ; Wed, 12 Jun 2024 11:48:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20230601.gappssmtp.com; s=20230601; t=1718218112; x=1718822912; darn=zsh.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=8XGjHFVtMXM4kbZNCT5DxmbYE2wR0st9n/KD1Z9glHc=; b=yLBzBPfVb07ZIph3PAWTrClutNs4fDk4vmdXXqMnp7tsOEY0RiMM2d9nQlpbAm6IAg 4ZXS2Gy6RBg8YX6s/mKFQR5p2+CKjP+qXiFVmY7S4brPW3uDU9Yc7KNMzBL9hltoz0Ql cFmQpkfA/YunugkMhZbwtGaz0FBrb7UhGy76v4MUOpFrBe4b3cM/6BBpD9wbhbuhcDaD DvJu4ml7MHskvChNd1OFzu0s7YWRk56jRQElFdvHzCnyLHp6NQQpIwvP189I/lEd8EJM jLicwkrtxb0ldKVu3LS1vr0j0+yFvvgliwIO9xV4eJ9z98lf9eSri2qW5p967QurBj0e k/xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718218112; x=1718822912; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8XGjHFVtMXM4kbZNCT5DxmbYE2wR0st9n/KD1Z9glHc=; b=vEc5a4vSHaADCIkpKR6eIPY0vUFIRnwTc+AooflzZqt3AQWsAEwDK0nJSuxIBWKfiJ EK7m8MK3SaG+Oma4cO4PEpGfquiWJB5GRrRTfNnkVDuauorrMRpQd08540GbC9BfJpnY fJqDw4QQcSR5wDAzS9RN2jsHKMv9Uz7LnRXXgLeK81ixUcw4HLIlnoduJ5kOJJ4EDkDy t3J7MH0MmtxXsR0wAlukgRlQNsYjvRD0ik8+nLE+UBU09BzIkOGSJP8+K5knFRlY3lmb 3YvfuERcOaKvKV9btnPs358k0Wh2a8zIb7G2ZkAfFXXRK0N0tucT9fywkefM5oLUhkG2 8vkw== X-Gm-Message-State: AOJu0YyTxaxThQ2ZV/r1Z7LXTvRsvJFsKJwHEO+BhA3VSyPkhBrHT2sV EzSyq+Hp4JRcMf8pR/HINFBxXYqtC/gW7Cv3Isd2w2NjEXdBvBUbLN0mrkK4RYTceILAZu84ezJ BSbWJTFLOK6AbEQTMDxHdkIrMxsIMdGzIbwyzbWujQwPXIbaoEg== X-Google-Smtp-Source: AGHT+IFs+JvzkU+hlh8MXggH4JatukWXQBrtM8+tNQpgY+0sT1IjXo1tQdTbV3VtwYENCj2Zk0wLfwrE60BVuT3CnAU= X-Received: by 2002:a17:906:4897:b0:a6f:51d0:d226 with SMTP id a640c23a62f3a-a6f51d0d2a7mr38107466b.66.1718218112362; Wed, 12 Jun 2024 11:48:32 -0700 (PDT) MIME-Version: 1.0 References: <87wmmu79zu.fsf@example.com> <87a5jq73p0.fsf@example.com> <875xue72af.fsf@example.com> In-Reply-To: From: Bart Schaefer Date: Wed, 12 Jun 2024 11:48:21 -0700 Message-ID: Subject: Re: How to delete .*.~undo-tree~ files? To: Ray Andrews Cc: zsh-users@zsh.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 30029 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, Jun 12, 2024 at 11:28=E2=80=AFAM Ray Andrews wrote: > >> On 2024-06-12 10:46, Mark J. Reed wrote: >> >> So .*.'~undo-tree~' is still just one string, even though only part of i= t is in quotation marks. The part in quotes is not subject to glob expansi= on; 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 m= anipulate the elements/words as desired, then recombine? I'm unclear what you mean by "break the string up". Placing strings (quoted or not) adjacent to one another in shell is a straight concatenation, just like separating strings with dot in perl or plus in Javascript. Once they're concatenated any quoting is gone and you just have a single string with no particular rules for how to break it up again. You can't recover the original pieces. So the only way to "break the string up" is never to put it together in the first place. Using an array would be one way to do that, but not necessarily the best way depending on where/how the substrings originate.