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.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 3379E244C5 for ; Thu, 11 Apr 2024 02:16:50 +0200 (CEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1712794610; b=FxZyKOAMQVqgPf9uejgoGgR2Qzst3PQwR13GGdaU1rmlAYvUGnr4S2oXXfgf6+/2dodbokKgFV r6qAmAakC69oAcEpH2y3wcjwxmnkNjmIeQdk3uQpsCpflSE8cLekrHVhxBv01wDndqzUyTiIYh CKDWcGyEf45m2zuA/xg2RIJZLFF0Q5Sjwp3BIrHb2ltvbOsTy4P7wHMUd2CawyF3Ik6MWtT3/A xBIDF2FioBISipEK6KylrYaRGWqegHliFdpAAvNrknCssJMt31WPWA3e6wqSnc7Mfn52XGpeOv 8j/KfVc4+m83U+fPjUllAgv7cZX2aXhV6BDvhthCP1z+0w==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta04.eastlink.ca) smtp.remote-ip=24.224.136.10; dmarc=none header.from=eastlink.ca; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1712794610; bh=PRTAwgg3t5ayvurqI7pOm6e+BLf37tHEItcJSihrJGM=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:From:References:To:Subject:MIME-Version:Date: Message-ID:Content-Type:DKIM-Signature; b=AqjIFHusUrbZD7VXRLFXRVq5bobngikGlV6jExA30cHYXxyIAHo2M0q9kH/UGAO0wMC3NOpSoH /3iON5f6FAPZEJoYWi2g2FNcrXjdx1eJqxt0FXLXcJ/YLjWJ2wmS9T0Tkum/NfOfewHeiRvARC +FXYXopJBKPq1JFb2cSb09AzdXlQDBTeEh2IcDRJTC/guoNa/7i/IBDK/NVxGhhddG/oEaeZ9N 2HvpMNC6OKj1QybJxSLieeKCJCNGXf6Txa+GXMyvaguGMM7Po8Lq7d2Zvg0UMhBNm891nVjlKV gBSvM8TUz1FGo2pstKnbUPs12p4TALlAFnZ/mrYKOd3TqA==; 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:In-reply-to:From:References:To: Subject:MIME-version:Date:Message-id:Content-type:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=ZZIi0me7U6AuZb84Dn1Y9D0I5qcZpdZN6ik4J6jlKeM=; b=CASKUaQ/x9GhfigT33B4cVjGwz KdxXSWiAMyCngI0hrcNw4xK8OeCYSlQfCrvttShnb5ExIRp//o6RnZvbdaECEf3kc/CTXBRtRIFQ3 kV8JilcVHtcpPjnTyiB9m6C3TRVBTrzFxMXNC22qfUtf63h3NZfXBEVDTE5kaCXtS6KHa6S0uiMb5 Rb8TPqv+tUrZxeBMYeJHAJbkaUHgVCkoRflrU3zOJXu5afoO+SU3VE+Pdo3iFA7D1MeBlJyPFER2Z 6FZ/0qqZXAHOUg1MMeav4GI2ZGYkgzlF0K2q+Xrbtw4aQ+rJJUUlr7lD32prpYGz/opcmXriWhlZV R32DG+jg==; Received: by zero.zsh.org with local id 1rui7W-0009OR-Oj; Thu, 11 Apr 2024 00:16:50 +0000 Authentication-Results: zsh.org; iprev=pass (mta04.eastlink.ca) smtp.remote-ip=24.224.136.10; dmarc=none header.from=eastlink.ca; arc=none Received: from mta04.eastlink.ca ([24.224.136.10]:56629) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1rui6Z-0008fL-7f; Thu, 11 Apr 2024 00:15:52 +0000 Received: from csp01.eastlink.ca ([71.7.199.166]) by mta04.eastlink.ca ([24.224.136.10]) with ESMTPS id <0SBR26JOR4OFWD91@mta04.eastlink.ca> for zsh-users@zsh.org; Wed, 10 Apr 2024 21:15:50 -0300 (ADT) Received: from [192.168.0.11] (host-24-207-19-13.public.eastlink.ca [24.207.19.13]) by csp01.eastlink.ca ([71.7.199.166]) with ESMTPSA id ui6Xre4iSAimnui6XrzoZi (version=TLSv1_2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256); Wed, 10 Apr 2024 21:15:50 -0300 X-Authority-Analysis: v=2.4 cv=Q8Rx4J2a c=1 sm=1 tr=0 ts=66172bb6 a=e7T7DzMKK1R988ZCg0wLyw==:117 a=e7T7DzMKK1R988ZCg0wLyw==:17 a=r77TgQKjGQsHNAKrUKIA:9 a=BsCW-hNsmAK2UDvRrSQA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=ZLGELXoPAAAA:8 a=e_bdA1koF9p4_jpgaiMA:9 a=h9yoDPf50mwrhQ4j:21 a=_W_S_7VecoQA:10 a=CFiPc5v16LZhaT-MVE1c:22 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudehjedgfeefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecugfetuffvnffkpffmpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurheptgfkffggfgfuvfhfhfgjsegrtderredtvdejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpefhteethfevgeeuvdelgefgvdevudefueduffdvgfelvddvgfdtieegueeuleeifeenucfkphepvdegrddvtdejrdduledrudefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrdduledrudefpdhhvghloheplgduledvrdduieekrddtrdduudgnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepreerpdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Content-type: multipart/alternative; boundary="------------i0sTvDdF3Yblmv7pIfBcOBQT" Message-id: <7b369845-98d1-4b10-8b26-02049e40a041@eastlink.ca> Date: Wed, 10 Apr 2024 17:15:49 -0700 MIME-version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: color codes to eval To: zsh-users@zsh.org References: <0338833d-1414-4c34-8bea-793f45d4115a@app.fastmail.com> <47548b8e-a5e6-4fbb-8b57-4f3055f22c91@eastlink.ca> <02e80e14-471d-4084-9ba1-148aedd70443@app.fastmail.com> Content-language: en-US From: Ray Andrews In-reply-to: <02e80e14-471d-4084-9ba1-148aedd70443@app.fastmail.com> X-Seq: 29792 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: This is a multi-part message in MIME format. --------------i0sTvDdF3Yblmv7pIfBcOBQT Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2024-04-10 17:01, Lawrence Velázquez wrote: > That's right. And since you're not using $~var or GLOB_SUBST, the > result of that delayed expansion will be used literally instead of > as a pattern for filename generation. Ah!  Yes, I've run aground on those rocks too.  What would have served me well, and avoided the majority of my questions here, is some Big Book of Shell Gotchas.  Especially useful for a guy like me coming from DOS and only having that, and C, as my notions of what programming environments are like.  What's frustrating is that I learn something and six months latter I've forgotten.  I sure wish we could scan the archives, I'd be going back and checking my own previous questions -- like just now, I knew I'd asked about '(q)' previously. > If you can avoid it, you might as well. (Especially if you don't > have a clear idea of what it does.) I don't!  All I know is that it got me into trouble. > It's usually not what you want, since it may let typos and other > mistakes go by quietly. It's generally easy enough to handle > troublesome non-patterns by quoting them or using them through > variables. > Yeah who needs that, when we have a proper fix above. --------------i0sTvDdF3Yblmv7pIfBcOBQT Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

On 2024-04-10 17:01, Lawrence Velázquez wrote:
That's right. And since you're not using $~var or GLOB_SUBST, the
result of that delayed expansion will be used literally instead of
as a pattern for filename generation.
Ah!  Yes, I've run aground on those rocks too.  What would have served me well, and avoided the majority of my questions here, is some Big Book of Shell Gotchas.  Especially useful for a guy like me coming from DOS and only having that, and C, as my notions of what programming environments are like.  What's frustrating is that I learn something and six months latter I've forgotten.  I sure wish we could scan the archives, I'd be going back and checking my own previous questions -- like just now, I knew I'd asked about '(q)' previously.
If you can avoid it, you might as well.  (Especially if you don't
have a clear idea of what it does.)
I don't!  All I know is that it got me into trouble.
It's usually not what you want, since it may let typos and other
mistakes go by quietly.  It's generally easy enough to handle
troublesome non-patterns by quoting them or using them through
variables.

Yeah who needs that, when we have a proper fix above.

--------------i0sTvDdF3Yblmv7pIfBcOBQT--