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 23979 invoked from network); 1 Dec 2022 23:43:25 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 1 Dec 2022 23:43:25 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1669938205; b=YaDQz7+lt9C4BuHDCGnlTiQ74V3cFHacMQHOalyZVXHcILTrMKgzxd53iRcm1ySaGFv50+kIeO 1ratTs5VJw7aAWGRAyimz9UeHSAAHDpzx8xYfDdaoKKh7jNPXEQ9WhpEqRq9PLcNq47EKGRBFd DPUuppW2w07SmP9KJOqsCayHfNAGBzDrt9kjUMf+gk6VyDnmq1oMNO0+ZhPi0hCFXjqd66qhyS FSVc1UqvPrTUXxmS7QW1En+dC9SBBet59GhiIzBj1o84TrabS+L7PXngGcJvPgbeXuSUPlFBWB 3oBZRnUyLKIj6X6b/Dmr7ndD/6/G5fsgtzJoxBL1/cSlyg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ed1-f47.google.com) smtp.remote-ip=209.85.208.47; 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=1669938205; bh=orMIE33Pn8bi4zTmxp4yMqs4djFmp+sQwZpP7gVRYeY=; 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=acEkX5BhK3MItc9fcbbWFeHoWmKOCoQbCNSEVRMMZTBVHdGuxCSOZngatusIDTkdqINt/6AW5E 3gsPakNaQ9decXSuou8/NYD6NVONYifriM2Ew+4guhVBMBtyO780L1ODSLUAZmaI4L1kIEo6RR /H+mMVkMCP4YGzLHGoFUPZ+gui3MEq7NfDIGbHrLo6kTQoVowdKBHq2aWso+/sQymz1FwEZat3 yrL28wpW9Qb3/l9M/f96Rks3Fx8SQ5riJhW2GGGTTJmy5mwuVKhV5xHT/+NDCHVtiB1AB1cxew xXyhvKNNTkKKgjHqCTolvpdHRfsswoq4zOdFhpVB89rRiw==; 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=nim68BLjFNNoKzmyFhwEEWizIQ4Y2XtFCNC/vOCqgsI=; b=roOBlZFAgrnFEKzlPyhfwXu+9w JXJgyqGX1rEImfmGyc7Ld9oW8T44HVEgplqShSGVlsBNVMSGA2QCopDwBdXraZUqTkFJJK0TzzBs+ AGbcgFJSJ0NaDxFAX0uPV2M27mc/qcj3jyWnf3WRQP3pUC9V09lsQxo70PD3If4NTJI6SOp0WfMSG Yvn2mEyWlhepkB9nFd01Hyrya0U5QlPVhJ+0SkNgE2vHFqlIiSLldLC9R0kbu8/XQEEyy0iYjWNbH O9+N66HTYR05IGQQQgyssnKvBhNJvaHUR4143z7TbWsiycGt0JhD2n42fWa7fGgCjnOYd3cpIlhf2 cga8698w==; Received: by zero.zsh.org with local id 1p0tDA-000Igr-CZ; Thu, 01 Dec 2022 23:43:24 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ed1-f47.google.com) smtp.remote-ip=209.85.208.47; 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-f47.google.com ([209.85.208.47]:38667) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1p0tCR-000I2X-Ap; Thu, 01 Dec 2022 23:42:40 +0000 Received: by mail-ed1-f47.google.com with SMTP id s12so4393710edd.5 for ; Thu, 01 Dec 2022 15:42:39 -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=nim68BLjFNNoKzmyFhwEEWizIQ4Y2XtFCNC/vOCqgsI=; b=CFyxRFuw2F5scCh5KWjIBP2mCoz1SzUKmIVbgPlpd4/yV4QupkY0J6ZY+4adeJrrUx UFa7fdcpr6xcVN+nii8CP/LJ4pzlvzHnrGgDBBHTVngIertrFS+BoNojkJaJycyYzerB 0ug79lZKR+VghogEdoUWf8uEvqYIYjefqAm3CpWPlPrk4+fGI6z72+AxKrE+n74816F/ RC7ypZknq04Dbnn7M1tZncTAnixd/cYzCrJYMb8QOs3QC+vQr2ZAH2OxjgOzlDeYSMXH lBrTO/xj2tMxvi+tJLajyaCjIGoRGIWnvstRHGcf4n7wmTUZbTmfkIbYqz8DdqFz9PMW NxDg== 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=nim68BLjFNNoKzmyFhwEEWizIQ4Y2XtFCNC/vOCqgsI=; b=pGRHyJZ05WKFjCVZuxElXZnlAbv27IYXhTjwZY3DaTpLtEs7ZgVFcbzHcgqanaTEEw K5HvVXlI3PklKyd4ZsmHR04vAOisEPFCG/PEbHM+y1LU4VoYA0vg1W09QfX+L77ja5eU aNdnzaWDvXp4ZmGKGaGwHsTz00zUerzKP1wSTnDpEo2MBJo+vf7GThDEW2L1Bn9zxmZ2 S7Dx0FiLtwGhDh0AnJve5LR+lxFTUOxKK6XgCImPKptp/KF9TLPgf9KQ3o1+EvNryfwN IilpOmGdb/jMmsdQxJfAFGAyBtyv9opGpzDQNADcsjvU4CwrIoZ2NFs0/sA//jeG7blm 8anA== X-Gm-Message-State: ANoB5plc4Q0HtnuxXfCEjHjfVSLes8QFNk4F4Rh2DttbkWgGjbil2qQ1 +3iLqUBa6Je37dr8gEjZn0sKoGlE5c5PpRdIWkEJUg== X-Google-Smtp-Source: AA0mqf7gW1BncPVOwZEqXIDqvnMmVYxYpo3zUBU+3yH32V9ZcGGm+xOvEdtnLp+O4njDCkqC/UryJbgWJJ2eLVJHM04= X-Received: by 2002:a05:6402:4286:b0:458:7489:34ea with SMTP id g6-20020a056402428600b00458748934eamr10259120edc.264.1669938158740; Thu, 01 Dec 2022 15:42:38 -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 15:42:27 -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: 28469 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 2:39 PM Dominik Vogt wrote: > > I cannot find anything in the man page that suggest it would work > this way. All occurences of modifiers used with parameters put > them in braces. The rule from the man page: > > 7. Modifiers That rule is just telling you at what point during all possible expansions the effects of modifiers come into play, it's unrelated to the syntax. In the Parameter Expansion section ${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. In addition, more complicated forms of substitution usually require the braces to be present; exceptions, which only apply if the option KSH_ARRAYS is not set, are a single subscript or any colon modifiers appearing after the name, or any of the characters '^', '=', '~', '#' or '+' appearing before the name, all of which work with or without braces. Note "exceptions ... are a single subscript or any colon modifiers appearing after the name ..."