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 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 7704 invoked from network); 2 Dec 2022 01:49:45 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 2 Dec 2022 01:49:45 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1669945785; b=kMu0p3L+KB82kDuCVgwjWDectrIEdrydplrWypd8Z93owFGEvyNftwVFTzyPsqB0WtMKQK9drD HcmqaaH8T+tvF3PFCtA6e8Mg5r6lCKf2SYPAjxplgPdaV3XckZC/8AA0PykuhQyXrT3pWuSEc7 CP+9+Vt977T9w5yPYOJBGLb1aKNIfdUYiq6GO10Dq75qEMo+D1JWkO8sGuidAty0Z6A/oN4j26 X+Q6o3+gXXP4MbrB7N2cXB/ParyDiNYwLWWD1/wrG5h6kkc8NjssivuzM9X9ntoQtuyHOufB0U o+ZntbO0gNUvJNtyFezPGT8KkKb3nMDO/OtJA0aGbYINXg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ed1-f52.google.com) smtp.remote-ip=209.85.208.52; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 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=1669945785; bh=1FONOH5ygOJEchFl5pqbV2cHHkb5eqy3wYdtZwf4KD4=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=h46SiVgndb3OGOiUht4Z6iUT9kejAoJch7KavJjdgqIe9Xb8svDJ4qPHzvyS//ss8hYmTCkhMu 78pw8be/kYDVB5yfqdHtVY6v31e8PbsMCFdohzDYgcFlMI+F306I2jD0WK+KV3378LAseBPdCw sYaFaY4KgNAl82rvf9W7MTpVXOdXhhhAwxAdenkdRkXb/2vN9XHEKFYLoMY49O7lEOV/uSEZLO eGVfQDyFvKOWmvZmmkEHVrDBXrbgNU4B+3O91htI1rEUJN9tA9c5O19xI6r6EwHbarbQScwYjp Lyhr4tFbi2EsUiEBooUJjazFZPV0Cmk2j8wJlJZRzt5bRw==; 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-Type:To:Subject:Message-ID: Date:From:In-Reply-To:References:MIME-Version:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=zcoyewVYlChEsQFVmegZAKgL5VPAUGyzZPBfFkVMN7k=; b=ADjeiHqXGGxYrljlb2ZtEdKi/E z0A/oyNkfXYfq/J3TzFNpDe8kfhyoNri5eyXMf1PRK/GhOwyugfbc+KedcJ1XzEP29MgutKy3LTY7 2365ZkeOUUhb2p4T9eML+Q1GRCwJ94rLPt5d1IZ3FQiL3M3sr1Rknb6EP6p6/DllQNgQN6EhxFda0 gLv07PwlrBRKcutUSAKMdNLOGvgqGCkOcu3Ze7izVE5Ijmj6yCCEhFv2OBoUSomALM8QLyx3A2RE5 KHsJYtKIyUyv0eNdht+Xhj58HSw96VNMy07MgkGXU7G3dbaGq1Q7UYEWNMYPYL2chvKw8TZA2cFMf Ils35DAg==; Received: by zero.zsh.org with local id 1p0vBP-000CNo-NS; Fri, 02 Dec 2022 01:49:43 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ed1-f52.google.com) smtp.remote-ip=209.85.208.52; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ed1-f52.google.com ([209.85.208.52]:45022) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1p0vAo-000BZ3-5s; Fri, 02 Dec 2022 01:49:06 +0000 Received: by mail-ed1-f52.google.com with SMTP id b8so4637821edf.11 for ; Thu, 01 Dec 2022 17:49:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=zcoyewVYlChEsQFVmegZAKgL5VPAUGyzZPBfFkVMN7k=; b=SnPy0w/gw124j+bsaCauitMZfTHArjJ+BmUtBodJIb/aOzCwEF3BezWEEw3ecWqwrP A4EH9U9mmqfczg5qY/m1MLk/4PDRAIA7iS7gWBBqfQKtbbqQTOz7nPbs6cCzkDcbJsG8 EspV+IBJw8hC1pp54a3TfRa1qZ2rBhaiH3Bzpc7A6lfm7+XJX7GTKDW4Un7Xqa5JK4mr 3B1LCYFqIgJwnNR6nfFveEhn+Z35D5GzT5MrzWaNumOQMZHrvrpwtNHeEycdPV4kf5XS 1euIOfEd5wYBKhtDRlAwc3psaCwwLwc97DNUg/Cr+I/jzEvkIWiZVfqdds2CzP1oPJt9 xjjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=zcoyewVYlChEsQFVmegZAKgL5VPAUGyzZPBfFkVMN7k=; b=sanfAnrVxvwz3doc/Bc638fjhzXS/75ZHDuQdCh5E3kpRRpnvvMPYsowM5qZaHdE0s /d80M+Y/WlDnmm8yLlaeA6a5JnaK5TuhQxM9PBP40v9bKxKZ04r1qbgwFSaxFXc18lB6 /LfgJKf1K1ziuuiv8up/4686dQOFp3ABlx3zKw5A3B1SwcRnS15xKW18gVsy5ZX6NBSg MQFYQWdJz+9f9yqw4lzkuyg73Sjx/AvVBx5FnLgVnFb+2u7prYPXYaZhDkC+oDtv6HA2 PhzscARzwahotG3KWU1qAuId5c5/MJkSc5heCrhs5r5wTRiMjXNSE1whyQSrisKaD39G a94A== X-Gm-Message-State: ANoB5pmdbWA3wMuXBYlUidLMdWtGxLR2Xq/b5JKhZFIDMfc+8cwZFuq8 qmwC7EZLz6eiyFdSzTuNwMsAp2Ts21BfoyTFkUUoc4VJwqE= X-Google-Smtp-Source: AA0mqf6GrqQ5uu54GAlKmPUXsEiACoFFU90lrsU9DqLd+GlkqLWZ66QviN++cTHPK16fWi+PIsDsM+M23nbjzT96PKg= X-Received: by 2002:a05:6402:4507:b0:467:205b:723d with SMTP id ez7-20020a056402450700b00467205b723dmr3957151edb.69.1669945745743; Thu, 01 Dec 2022 17:49:05 -0800 (PST) MIME-Version: 1.0 References: <1dcdd69c-ce29-921f-f0f0-6862f68b62a6@gmx.com> In-Reply-To: From: Bart Schaefer Date: Thu, 1 Dec 2022 17:48:54 -0800 Message-ID: Subject: Re: Modifiers and parameter expansion? To: dominik.vogt@gmx.de, zsh-users@zsh.org Content-Type: text/plain; charset="UTF-8" X-Seq: 28473 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 Thu, Dec 1, 2022 at 5:28 PM Dominik Vogt wrote: > > > ${NAME} > > The value, if any, of the parameter NAME is substituted. The > > braces are required if the expansion is to be followed by a letter, > > digit, or underscore that is not to be interpreted as part of NAME. > > Actually that is only true for "normal" parameters. Neither of the > special parameters except "_" treats the following characters as > part of the name. The problem here is that the man page is written more colloquially than the interpretation you're trying to put on it. To do this rigorously, we'd reference the grammar of an "identifier" and explain that NAME is the maximal string of characters matching that grammar. But that would require even more back-referencing and technical jargon than other people already complain about. Special parameters aren't identifiers at all, so they don't obey this description. > With braces, unknown modifiers are rejected, > without braces they are used as literal text: You've caught another place where the manual was written 30 years ago for people who already knew how csh works. On the list it goes for someone with a lot of time, sigh.