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 20874 invoked from network); 12 Nov 2022 04:25:09 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 12 Nov 2022 04:25:09 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1668227109; b=j34Ppxz/f4lSnghxDY/K830B/O8t30VM5IkVT5HU7KYZZX0iZN41lsaNGHU2akRHT2cjjaFmEk qb4POhsNIpR//64o7FzRFoTfb0vRTBV1kEYG3LXX+gHR92m+II5DS6E92vwtvkFCxoCF/gi22g T+FT0Ei3wVY7FAmmVrLWreg2C1wOmESB8T31kkcgN13+Y9UZv7lgJ2zMOIHbMu3T/EDafP8FVK lLAdOkkA0SRtcUU0i2Ag8e/LjbtKycZHXML/IdamVSmS2YTzKfvx54/31rEDyAYp+jMMDuKjAB jlovdySeEQNanipPXo48wZ8iksdAbMca4pgH5R099sUxAg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f49.google.com) smtp.remote-ip=209.85.218.49; 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=1668227109; bh=xo5hIItFvCfdwGo8QJPrnZwOCB3EOuYIF92iZLkjhYw=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=jFIhW2ab4xEicgOazr9TFAKBm19tcQa/jhcOaPj9DWvZS7tD39y1E6ppHrcS0d8hHUlomOCwFH BQSwv4x7lgwAsgSoGHFoHapVu97Gg0uE0eVuKWvHY5KTcNNACXVgDg1Vm2ph5mF4lCy9b8GHV9 Z0yGfcdf6C0NjKRI26vNVdIwRRa+aq1xVFfxn3bV+mNXdS3JlqFOnfni98tuM4cMjsBevWU+39 vbb5gGY4bCOo4LHPK7IjYyEiD7ti0+V2n/UcNJqge0fM0qx66Cj37Z52gl71tGj2Jwkd4+vzzg UDVVlSYJO+57w2TB5qf6BC0+Vd58TjsCO8LaAQJDvRBwBg==; 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:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=BPQbbIHJOVlwiJmG//muu8WyzypQDq97M0ctmM8aJJg=; b=lM/cS2+VVPtDxOWUWo0jQa/wVx che5knkDNhB7QBV17B6UsfiNf1r+D6VfbZCHdzu9zlsf/LHSDp8/mlFR1FTkLdRfnTdmMbUyYdeZI apvtlY4G0XslUY+UxfArVwhd52Njq9/FVowEmy9EMN+lfifNFoQZEMtTh5KLgtZjeFwGT+D8ttccs 5BBdVTHqNDXQvjeDZxk0f5NBJHKUY08jYFAOCL6ayO0EjVzdtSbpL9mbefHQVcbtfeM2M2daqsttP SiYJoxgWp32KyqGkfM8YJKP7T73eN0g4y9Ba4LqVQzPdJ3IuehzW3FSbStDOBcT3/hUK6E+9BMQoo XE3VFr4g==; Received: by zero.zsh.org with local id 1oti4q-0001GL-Bw; Sat, 12 Nov 2022 04:25:08 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f49.google.com) smtp.remote-ip=209.85.218.49; 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-ej1-f49.google.com ([209.85.218.49]:34419) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1oti44-0000Wd-B9; Sat, 12 Nov 2022 04:24:21 +0000 Received: by mail-ej1-f49.google.com with SMTP id f27so16730339eje.1 for ; Fri, 11 Nov 2022 20:24:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=BPQbbIHJOVlwiJmG//muu8WyzypQDq97M0ctmM8aJJg=; b=asch/xwgRWCwQdW+DY6JH1LXi4+2o0ixZvVHa7XN/xaBaaZu1C9roqhvH0lE+xq5+E SdTHkvDjXG2AKEs8J004SNNqGvI/fEI3lY1cJ8M47wvfR6yV4pITikFi8ErT0kk+svIG OrxEWXmw3vTxVKrlbwPw8WadcyoUlz/Rlgv5usVPZhgRfEV+6/hcz1bO2Dgdkm+kt8fO xSMulUHhbJt9+Q4fnt3RyZrQq7OFjmBzw8GX+KfbFplo1SRRNfYqfBgz88dzIAVeZWrW 4574+6Fnh0tV21jt379D7YjLEwcCKGyMbTtY4imhKrtnkl00ATrH3NBwSStJQRFTHz/Q EPyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=BPQbbIHJOVlwiJmG//muu8WyzypQDq97M0ctmM8aJJg=; b=Tu8D3GTl/k+KVearmBJKAq6+2Ifs6rDOidFG+0QRN5J2R5pToOZAj+bU8cIxsvn3f1 B62B/PJhVDz0Q8ILpUTEsJsaGY7E7PeMAg7xzRMuDGYjILLsWpE1peeNyxy1tKnH5K8D 39ZMQyYl3S7NdTHsCOxx/Tt1NJLZkEyOn5EUuvYWe6/4VIh+3aSPlsfs157iTtUURgDn w7O07Yl0aXSO519VvSnexeXif7RWosclbK8uVtZXVzGKKUqGHJ+94koMEuFan1yiD/M3 UyfmnxX222RXc4NpWTA3c6uxX6wvdAbQlpdYo59FnZT6UM1RW9yPybmUMPDl839tnY7m 9pIg== X-Gm-Message-State: ANoB5pnJE+aA5VV2UOeNuSpd+qMUzZUQlDA55q+kTQTlRODjdk4+PSSi Uz3koDhqLTe0hllttMSUCH5xy84B5z1/Smo4PgwNsA== X-Google-Smtp-Source: AA0mqf5Q9cluNwfUCqhlLR+fF7jAAkKS/t95BtqDtf8LKeMhfsaBu/xBSJrOKIRSHxU1bvR00NJoyK0NugyGYatFjAw= X-Received: by 2002:a17:906:3e55:b0:7ad:dd43:5d18 with SMTP id t21-20020a1709063e5500b007addd435d18mr3955984eji.389.1668227059840; Fri, 11 Nov 2022 20:24:19 -0800 (PST) MIME-Version: 1.0 References: <549715c2-8b36-8b7e-e3ac-cac02f43dd0f@eastlink.ca> <0a7dbe0d-1554-269a-f420-bfe320c7c838@eastlink.ca> <6d7ba212-be9d-6bb4-f5ce-9a796032ade0@eastlink.ca> <6a92000c-dee5-a1e3-a77f-6a4697a66ab1@eastlink.ca> <34a949c4-0853-4c65-d2ad-db40749dff81@eastlink.ca> <2dd50dc8-cdbc-02e0-0e1e-485718732d0d@eastlink.ca> In-Reply-To: <2dd50dc8-cdbc-02e0-0e1e-485718732d0d@eastlink.ca> From: Bart Schaefer Date: Fri, 11 Nov 2022 20:24:08 -0800 Message-ID: Subject: Re: coloring substitution seems to eat next line. To: Ray Andrews Cc: zsh-users@zsh.org Content-Type: text/plain; charset="UTF-8" X-Seq: 28379 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, Nov 11, 2022 at 1:26 PM Ray Andrews wrote: > > On 2022-11-11 11:25, Bart Schaefer wrote: > > Isn't that also true of a glossary? > Not exactly. The sort of thing I have in mind would be purpose built to > explain zsh anatomy. It would show you sample code and then 'dissect' I've never heard the term "glossary" applied to something like that. This is a glossary: https://homepages.uc.edu/~thomam/Intro_Unix_Text/Glossary.html But you seem to want something more like the whole book: How about https://homepages.uc.edu/~thomam/Intro_Unix_Text/TOC.html (Or at least everything from Chapter 9 and later.) > recently the ':#' construction. You won't have much luck googling for > 'zsh' ':#' Indeed, search engine text indexing is lousy at short strings and punctuation. > > Or you could look up "substitution" > > where you find that for parameters it's usually called "expansion" > > Ah! So I was right the first time. Substitution is a special case of expansion. Globbing is also a special case of expansion. I was just trying to illustrate that the index will get you to the general case from the specific.