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 0379329DF3 for ; Sun, 10 Mar 2024 23:49:19 +0100 (CET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1710110959; b=DxdyE7CQ41nLkhwjQHrVgSqa7k82QcFy/KnpcClm5OtQqjYy8PWCio2sL5sIx7tVE0gxMup+6O /pS8t6RBJZK5Qu3fWvzAEdzWafuvUQkIfie0Y8PEtSlwcUryV8OZ44uJ1ndxjNV+tImKg75fTq dMJ+HYzeFvjuWRSZC/SU+Dscngjeg6sqTNft85F+kGp7+Kq6AAgRbsRo/OMPcOQiEOPmPBeIRq 61kya1yEDnzc4UvAA6SY9aAe/s2A4pEBkLS0TBvQnisvJqPjkq1AiJC34HeZN3pClRTJlXiedi oi4TXvYDeZzfER8JFD9PqQfBsUuVkDMpZUd8rEAVOoj+LA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f42.google.com) smtp.remote-ip=209.85.218.42; 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=1710110959; bh=CoXXuEilpD4xUQ37d7tRGcTVv310mGjqORYBZ1SvChE=; 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=nl49Tktjq7WaHhY3i2tGg0vOgrnMa9nLUrbWcojKERDOmQ9cZzJ7isFFrixym6zdB69eliqavX FrcOyuRiig2OsAB8QeQFhO2CryLsVPkbQj3yLb/KhQtnLlKmbWBo8/2GyLHn+wcgHl2QBsChU+ FmWdTMmqB1JP4wg+4OBsmP88LS+TIJo3JmUIj5HpAX0+ykS1fRBK34ctUPBRMea2OxcvATA0Qa YcYB15zq2WdnYwBwW9Ed+5c1HQA4QgMXXYYssWnAB+Fe3176WsAm2gNWmciOjIbBezGHsOrJdc MSNQ9PopxbSvTs0xAkMeB33RyWg0nraiW2U1yhwO+Hc6xA==; 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=IZ7eXmWaPW8bPybZy1uPV/udbIjjL0PID9PabwPTr0c=; b=AvLX9AvOeoFfdxQ1eXL2TNHtnl paRYb+RBsoxR0SHjwpwXdgBvw37eVBO2NB03rrLwoL3ePMZM4QTsJ4f28oldzQdLdZwUjl3AHm0EZ u2WTEI9P+k8reeAYPYDggKCaIbaYBw3Izj9L+m9ivCDQYIcTLnCfBCENi703IKQTj2BKzFuYR4YY8 HF6eOUs5XSEyCsWrHNwWFjaZTyE73gqy8DM/AaopTvn7OdQO/pJj4MO6VEXbWeMMd7o0mt4DYe+nW 0ja0fB6ze8/c6lkEGrO/IjTWnw5465XypLYe/PtPmlCqzZr0B/lemk7+Qo+8MotOtd1hiTF6qNsB4 sMExezRA==; Received: by zero.zsh.org with local id 1rjRyp-00004l-Mc; Sun, 10 Mar 2024 22:49:19 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f42.google.com) smtp.remote-ip=209.85.218.42; 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-f42.google.com ([209.85.218.42]:50670) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1rjRyG-000PKJ-CT; Sun, 10 Mar 2024 22:48:44 +0000 Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-a28a6cef709so356283366b.1 for ; Sun, 10 Mar 2024 15:48:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20230601.gappssmtp.com; s=20230601; t=1710110924; x=1710715724; 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=IZ7eXmWaPW8bPybZy1uPV/udbIjjL0PID9PabwPTr0c=; b=b7fsdcWkMhywlPW6p8gDlazrYfzvvi9pze5TOU9KkiFjvjeLk/4GTpLC8e4clbkK0O +qabwUULvFAULCDeu4ValNjgQi19GQKie2PUz8PuGdQ1ELyYeU5nNBXcp9/4vHdT73wm 5fZuGCexqTPjvJl6Rnu04QtQFeRHi3MOJBQw+iJNA8pCNPwPvzRF4yglfZ0Og2siHpIR nCK2GkLMXWoTkRZNgsmeIvbQ+IK0ruVhJZMp8L6lvSx1CqOYOBTkyOwXG0DvXL7fbpR0 l76jJ/X+YAJ/Z/r3/n3lYGo2j+zrilz7ZKd3ZlGHNAOj/Qx+w5tDR4uKCUIC1KFJov9c tomw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710110924; x=1710715724; 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=IZ7eXmWaPW8bPybZy1uPV/udbIjjL0PID9PabwPTr0c=; b=wHlG9AzQ2tqvlaagq5muE6RvMcMzf8xsd6rS0Mf8TED3R0SN4f7cRzfIcgSX/wrA/x sWQQp4kbOmGWtdbsqnIWM7Bdn4+iMwDw2mN99tbq/F2gBm4BVl0foV3r8Jaatgi4u4Mh Qr/ngOH8M0q91E9Qf963STsm0ORWPjX0fiwP9q+H5L2fm1OPAuMNGcdnbojs5Lpb/KHD GExgTI+4sfQCOgC1gkirUeWEAWC5iCrX2WIUmr+8wQVddiXcA/tn/rhqfhAD3iv2H2Cz +d0IF5Tb71AAqOTSeTjmiUY3rKEBNyhLyiQx1NLlvPFaW9Pl0wC4JCvosGRZQhHu1w6O IIJQ== X-Gm-Message-State: AOJu0YxxggETXpw7K3I2ojH848IEJ486zQleRAcdwwhHcf/bMnq0d2p6 ENzoD7HwGcSbZvxegjbviOMh1dl7/5QYDlY49ZGoa49bg+DeeRw4ZJ/VzdS6GzGOtFYm1AaNujY H4BGnYcsFiS8YmDvrBQwFQvpFHQDFGBZ2TO4CwpPdedjls5skrA== X-Google-Smtp-Source: AGHT+IGrAyraj+inwUBsQmBGfloIh7CEhxfLfni9gK7PlfMJy0bZ55qwyisZddocHv67DGTVQgWpw5+xMSMIFa6SGGg= X-Received: by 2002:a17:907:c242:b0:a46:13bd:c833 with SMTP id tj2-20020a170907c24200b00a4613bdc833mr2796637ejc.51.1710110923715; Sun, 10 Mar 2024 15:48:43 -0700 (PDT) MIME-Version: 1.0 References: <20240309143036.xwqm234mtu5wqh2r@chazelas.org> <20240310121359.iuhmf5renmuf6y4z@chazelas.org> <6c783297-aa25-4ff6-8233-185a281a074f@eastlink.ca> In-Reply-To: <6c783297-aa25-4ff6-8233-185a281a074f@eastlink.ca> From: Bart Schaefer Date: Sun, 10 Mar 2024 15:48:32 -0700 Message-ID: Subject: Re: Why would I use .namespace.myvar? To: Ray Andrews Cc: zsh-users@zsh.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 29728 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 Sun, Mar 10, 2024 at 3:16=E2=80=AFPM Ray Andrews wrote: > > In a sentence or two, what is a namespace and why do we want it? Quoting the updated FAQ file: 2.9: What is a `namespace' anyway? As of this writing, namespaces in zsh are little more than syntactic sugar for grouping related parameters. For example, as of the update to PCRE2, the parameters ${.pcre.match} and ${.pcre.subject} are used for regular expression substring capture. The `.pcre.' part is the namespace, and when you refer to a parameter that has one, you *must* use the `${...}' braces around the name. Assignments are not special, they have the form `.nspace.var=3Dvalue' as usual. Parameters using a namespace have the additional property that, like file names beginning with a dot for globbing, they're hidden from `typeset' output unless explicitly asked for.