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 8973 invoked from network); 11 Nov 2022 19:26:34 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 11 Nov 2022 19:26:34 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1668194794; b=p4p+2Pi552lgJ/CnA5e+AcOlhgfr6qWRVBsTtW638l80Z7fSDxsXVwubt7ri+3ZM0WoVwEXWpi WcSb3kc4s1GF6fW0nT5QW26JaMPXyyVQpaJI1jZhHBSlJrGbhP58smKBPqchBPzDc6+4Fpc/lC tOXWLp+47fh1IWFxDWNEInw11SkagR9I3aO1ByQedbFKVJIrMAgRXJ2Fl3qKpBK767nsnxdwu6 llvUWWRtCy1pXHV24Q0ewQCFGiBeeNbiFtE83hrEgxLHaygBpx81f+kfrBUf3aFZ+X/z0wkOdO dj2CTK89lvQFyDCSdXxbhI59uXCDMdJnj2zIiVj6ZjqJrg==; 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=1668194794; bh=C2ircdjcOm1paPVFh2BWVDgkV8mHROAB6ysMqk8XVDg=; 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=jav6nNnh7aCOcqw4VBgsli0+TkAf20xueUpZ5q1ttMpgGR7Yj3IfWgtK5Ip6c2TeB3PQnrKEgh udwkrP4YmzK575hjX1J1VaMUfOdAUIDONU2v0njRpa2h4474sdpAsus1hXdjhyxciUyNob1V2L krA8w0yPRC0dD10HRFN5cZ2qr17LA3UxeBsSSmmVcGdzdabCk6RPRCoFVkriMPaJ6/mHB76lbj JU5Js2IytjFOKMhwqFCcqLv9VOT9g4pqy+Z6e9Um2MHMOWzOogl/n/qR/S5ZgA4XuVW3BAIdWS q8w1eHh7wSNU9o8vD5p3jWz076iBNXDzI8Rs+CvHGNGwsA==; 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=cpdtZRiMXm6oe02zjPN1kqnJTWFI57Hj3W7O2i/9WAA=; b=Nv6IciT6pYkUDfeZrA9+UCpWDR LvgZ8yiV0GFeQ7VlGiE4eodTvRDarPxVkYf38hcXPJD2JvbUFHt4bSVzHQxG9aChAKyCtoCUWMBIv ae4H+II4gvtc84eJGA8ILaPsChlOYsbCYi6CW46PeGPYTLwDcFJJW8RPtkOv3IPVbS8pHQPssnJXE RqqM9poFBUbuKRZ8lluF/TdbytwV5plSUTKl1iWog6e+vM2FtbvuWqceAklRkAlm/D+f4gE7uouLW lkuV871NHbeXORRmDD+8lUtv4n9Fy0n7BYYrHs/4zCMfDOpM6di3WEDv9tqJJcrUIIB+TQntahJEV 04CUGXMA==; Received: by zero.zsh.org with local id 1otZfd-0008bY-N7; Fri, 11 Nov 2022 19:26:33 +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]:36862) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1otZez-0007sg-6f; Fri, 11 Nov 2022 19:25:54 +0000 Received: by mail-ed1-f52.google.com with SMTP id 21so8969243edv.3 for ; Fri, 11 Nov 2022 11:25:53 -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=cpdtZRiMXm6oe02zjPN1kqnJTWFI57Hj3W7O2i/9WAA=; b=FldDNbbSvXx577K5e35m5JyQ5uW63CLEUsHPS9WEpBA/lhAr5ED0VILfYIy4TSSRCf RDOJbpk+UwDrejVyVguJMJzF+FHg60DCA3Lxi3NF3AU4joWYXOV+OpiaADKndho1aV48 2uXlTGNSlvyDt+SvyvfbTLzeYyoVHx+/opiU6p6PWR4nKYQPh+AQTd5QGtEJx+06G3FZ nbPBsPsSwYjDOjO++HQvaQnokODpJtShRDeQ+O/phwW5gdptx6BJ8aJYgYIUCl6kUa5t U0vXDut5UmZstAKBAu02SoOfDpBtn9O2wGCn7/bqFUD5WY49HrQDT0bZ/IGtNXo8irpB jP+A== 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=cpdtZRiMXm6oe02zjPN1kqnJTWFI57Hj3W7O2i/9WAA=; b=VoECp2xM7roWZkBqKLjeTeXDUy0wUmm8akHZnOMP+W+KyEm05fGwvvxLmLhdN6Rywb 8F8JdgH/yPZqOdpi1gC5W/FzOm2Im9AhwR7zWzn2BqbReN4Ob4HYftefspnzCGglX+RT zdq/CtDxZYTK1x4uTwx3bB7s+41ToduYyavi6tow7eXh6QGNiOQF2CWxmyMEPm9Cx5BA th209wxV5E3wEyu83Lrrz0nF3DnrYqbzKLoWPPghwUm51g3dCVWeHFmF71XhaWviDd3y snlyRzHwgTkPwo9Cb+R8iOuj+lTmti420nf8ZPQO+j8TNOPhvQzPeXuHHR4asE1zE9bs Mt9w== X-Gm-Message-State: ANoB5plSSo+htooZnwethCL3M+dDjPeJG3wTa/ESYavbOpxclsCsQv5X GhO/Z3IsPRememmMMAjN75ySX2gw9lWxayKRk0Ytog== X-Google-Smtp-Source: AA0mqf623qdunX/yljtGkYQql5PL3NzykGY0nY/RItiMIy47Xh+PxoO0+A2dDyNVq5kyFfVMt/gNZ6LcuolIeYq/MXM= X-Received: by 2002:aa7:db85:0:b0:463:f3a:32ce with SMTP id u5-20020aa7db85000000b004630f3a32cemr2775473edt.366.1668194752784; Fri, 11 Nov 2022 11:25:52 -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> In-Reply-To: <34a949c4-0853-4c65-d2ad-db40749dff81@eastlink.ca> From: Bart Schaefer Date: Fri, 11 Nov 2022 11:25:41 -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: 28374 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 10:50 AM Ray Andrews wrote: > > On 2022-11-11 10:15, Bart Schaefer wrote: > > Why wouldn't you do this as soon as they began exhibiting behavior you > > found mysterious? > Because I'd never seen anything like that before and I had no idea where > to even begin looking for an answer. God knows how many tools are out > there that I've never even heard of. I find this response baffling. Roman wrote "local MATCH ..." so obviously it's a zsh thing. Even if it might be another tool, at least try checking the zsh manual first? https://zsh.sourceforge.io/Doc/Release/zsh_6.html#index_split-5_vr_letter-M > > You mean like maybe the six indexes at the bottom of the page here? > > https://zsh.sourceforge.io/Doc/ > > > Not really. Again you'd have to know ahead of time what you're > looking for. Isn't that also true of a glossary? I mean, go back to the mention of how you've never heard of $foo:t before. Well, gosh, look up "colon" in the concept index: https://zsh.sourceforge.io/Doc/Release/Concept-Index.html#Concept-Index-1_cp_letter-C Takes you right here: https://zsh.sourceforge.io/Doc/Release/Expansion.html#index-colon-modifiers Now you know it's called a "modifier" so when you see $foo:A you know where to look. Or you could look up "substitution" https://zsh.sourceforge.io/Doc/Release/zsh_4.html#index_split-3_cp_letter-S where you find that for parameters it's usually called "expansion" and expansion has flags and oh by the way there's even a set of expansion "rules" that will tell you all about the procedure zsh follows to perform one. Or you could just scan through the concept index to get an idea of what terminology you're likely to encounter on this list, without having to read the whole manual.