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,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 24155 invoked from network); 5 Jan 2024 19:59:45 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 5 Jan 2024 19:59:45 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1704484785; b=NirrEg5Hdx3ZHYAl0QwJ2e90V7OKCgHYKdk8us72eY9V4WMbcNUBRB2GzHhbcLsXhb5FfNdatS WuCbZatwk8RKys0vXFEEi/JArPOdk4E/CYuSpPLN/nMwZvdeW4yT+jK+qW+1rT6oN6XIVmBzP9 WeK05Egzq1uhUrq+fWA/AiA9COQOHbFcrzNn9SKNRsTjeQLo+f9sh9C1U0APwTB+5emRA7MuwF VFhXaas47OA1Tu+uwWEFt9CTyvy3lZqxn9tAvSTMcyIyxo9BVRMRmdbK7905n0eXE9sh8Jriky OK5wGfIKXnqSaGP/VoHfJBGeaiCKQxV3Wp5dSoRXsdKfew==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f44.google.com) smtp.remote-ip=209.85.218.44; 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=1704484785; bh=3V6TZWW/QRQeBo2fZcdvgv4O6+Sxc0pSVAsu4XiFeU4=; 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=IqpOlTMaZD42c2VceMY/QZDXui3tEXQtPs19medLkKNUor6JyIMWCYWW6QxMv9nHleClOQIunr U+56GrWU8LgYkdpRh+f+s4WfnMTAXZ2nLW0pd9F3O4VWsyQruk8Z+dfyJWq34KvzLLLOL7DN3g MJwE0UTYn1Db9Ga+vls+khAHwFVbE+fDeEu+qu2clL2ElLTtjVBOd9gG84qD8Wc6C0fOJj2y9A 9AIhtdDdK0zUD1iAaLRsV2vAw6onYcgf1/zuXx9oUmTIwWvLQiQIw4Bh7HVMvqms2HgIN1kme1 A5dds8iO0VwdA06jY2ZlB6Qj9VUmRp6uoRgUx1JMk8IUmA==; 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=t3Z6B5BPYWbvelEqbcA6Fh2Nchr3rPr/5YjGQqw4yGs=; b=fMdIYv99ePdPqYJFBmkHYLCaHs lgcyDOQTqmlVe+xvXAOKw0h342QZOqXIdgP1jhH6RdsTDQCV9eGoem8EQTXVA7nwHEAHK0tZ9klnO CM0v0N02UoEHrGMAS1lotlsHrik+TG915kxbvQQBP2rkv+JEVLltBOFzn2gJqBfkc6zXJnhQVAz8h ptZa93aJ2HIfQIHQdTza2q4RthozDuBztyQF1Q5d33Igv/je8IJmlD9CR6Icw0gqq+pe073YeElXh qpE8mzHNkFrcMsu41p9xa6hjk3souX2AU/M4JXaHqUlcwyyCw/uduZgwaIruy7aZSw1PIkMO+Ms46 8v4hUo5g==; Received: by zero.zsh.org with local id 1rLqM4-000O7Y-Vd; Fri, 05 Jan 2024 19:59:45 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f44.google.com) smtp.remote-ip=209.85.218.44; 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-f44.google.com ([209.85.218.44]:57537) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1rLqLF-000NO4-C8; Fri, 05 Jan 2024 19:58:54 +0000 Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-a28cd136f03so221780366b.2 for ; Fri, 05 Jan 2024 11:58:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20230601.gappssmtp.com; s=20230601; t=1704484733; x=1705089533; 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=t3Z6B5BPYWbvelEqbcA6Fh2Nchr3rPr/5YjGQqw4yGs=; b=yWmEkM1hUrY3h31jU6Aum+/H/+Oa4OJvWm+0aga8NK/KF7rH8RYB/G8dn4n70E/fMo PpuVY424GV6xw+vKd62u3itMTdQr3RWySzUQrd7Su40FOsAUHOb2W0/pI/vcUad5Z9eQ L4oGken3duNrqKQ663vC4wkqQWaQwFIcsuNOta7T/Z7AJAUtMpBSO+hCURRH0TqgFoGc DpWPuWIUJ30CvAXodIz9Z53H+4Fm+pi+2DjReGmusnMi/ziupKiwtI6ITxBsI3bYGrTx o0hsnYSpjj5kue1/RAHeT6igCWCI2DCn8mE20AfOIJpG//mcx75iSyL07j5EqGx2nmgu hLBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704484733; x=1705089533; 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=t3Z6B5BPYWbvelEqbcA6Fh2Nchr3rPr/5YjGQqw4yGs=; b=rQqIPEUacbrMFcKcM/BpS3hxuzLH/bHH9UbagbDThgCjTW00fmqUk5R8c6aKIvjNTU 0cXjc2Hsy8rNXohykLiURFJMEyRlLEf7FYYsZ7GaMpeeHqlqZPVi+JBO/Brzs6BRuoQr c7I2SWSdqzps4P1bE/KhHAb+c5r9zp6phHru/wLEFnCSODdHAhLG7DCVx8FB7XVdkE6t 1gwl140WuiMNxi1FLc6qmO3QOuNB9ykiBHVVp4/ydDSp63RgW8VvAA9WbdRCLJfLJloY vMysXX+Oc/rIsPL5arp+kOBe5q4n4Unc7pVp8fXNg4jrKBUtKowu2KEWRE+daUORwYrH igcg== X-Gm-Message-State: AOJu0YxL/7f+PmMfkPn6JFQryXw/VUVnMmg/gxBy5Fb+uUlcq0mrumxJ G37NTUz4Ghdqwlk6YKO3+KpS1pb/tj+And3JSrmmsZvyu+0s X-Google-Smtp-Source: AGHT+IHSJZfBmCLlxd55UFlcyxepZdVWEIlzPrw8oCoSLZtaPkYwN5zapM/Q2C+Wahu9aRwiyFToIf/qJ8EHMqmowE0= X-Received: by 2002:a17:907:709:b0:a28:125:8133 with SMTP id xb9-20020a170907070900b00a2801258133mr1425845ejb.134.1704484732734; Fri, 05 Jan 2024 11:58:52 -0800 (PST) MIME-Version: 1.0 References: <625e7ef5-be1f-4b5d-bb2a-f71634d151cf@eastlink.ca> <3fb34197-be9a-4323-87e0-7052cecf33ea@app.fastmail.com> <3adba5e1-18b6-495e-bcbc-09a554465029@app.fastmail.com> In-Reply-To: From: Bart Schaefer Date: Fri, 5 Jan 2024 11:58:41 -0800 Message-ID: Subject: Re: tilde syntax To: Ray Andrews Cc: zsh-users@zsh.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 29425 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 Fri, Jan 5, 2024 at 8:42=E2=80=AFAM Ray Andrews = wrote: > > So one might say that by default a variable expands with implicit single > quotes around it? Approximately so, yes. Not precisely so in the case of nested expansions. > But the tilde reverts it to 'unquoted' (for lack of a > better word)? Only with respect to pattern characters, but yes. > And this was a design choice at > variance with shell tradition, so obviously very deliberately chosen? It was in fact one of the primary reasons for the creation of zsh in the first place, to make the behavior of parameter expansions more consistent without always having to use double quotes around them. > So the only alternative would be if the tilde worked in > reverse -- presume expandable but force literal setopt glob_subst print -- ${~~asterisk} does exactly that.