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 B08B82380A for ; Sun, 14 Apr 2024 02:29:24 +0200 (CEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1713054564; b=Wqdix8z70QFgnIaIqq8cIL+BqBDwq4wIKWPsnPcjOOLKJ78d2VZN9tmm/WpytgGJCDcs7TMdoX s1OfbVFJ17ohFdObWeaeIwY8wyXfOuICKZ+HHVmoMnliXdzQnTI6NAxCqTsi/TJBanOXsxvago OfUn5+Ir0F2847uR6we5tTbpk9PQnjZcWfSSN+T9sfD5NAIFx2R1YVx0d2hmBIZiEXgzsof0WC qN2ndXIT7LIBvtE/1SMvQAnAyLyYM6AuDnqWNzlK0j80Ts1dCpNCxkGXIB82Pf9ZA0/X8b14l4 SkKPOkKL+qDkIys9jABBmTP7C7gVFYPuqjshGcJHjYFyjA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta03.eastlink.ca) smtp.remote-ip=24.224.136.9; 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=1713054564; bh=xloYQmkqKhPsr41TyEFLolwZGvFOOYGbclT+IrsNaMs=; 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=LZR0SyPsqDugI4c7lQePUObVEounANxVES0ohSuQ9+oR0VQGkPcoje2OKVh09GsubMg7YSo3nL ZVvYTHE2IX+IUqAtm/rNUv7TGpAUWK2Sn0OSdMNENcJRml48/YX+/f+gJCAO0hRCMIawi+T9b5 F2AADOZJPhNgkVNRpi1fJQ07F9DVmQA3Cji7T6H2zQQ/e7tFC34iB22JAY1glZaYwEnj8/drgz b7uSxg25GhCuYppNMj4kOgKR3y70PAeQvkuJinRz6DOSlxuJPs+rVxVjFYST75aq6Kxo8ehioJ SWQREkAbzlHJF5/3955RLmV3y27eSDj0jngwt13yVN14tQ==; 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=/eb9TWxUeYoRANC36o86MbYZCy0OSlNUu9/3seFiKDI=; b=ogR6JSeg4an+Cb72Ow9TmiJcGO HUm7xFY4D/T2PK+sjIYkn/tyW3ykGyC6KjdTlj9UBz1z8UrSlZ56ZEQuZ3bYdGB+BmoeICIYsfgdz X+bekM7S7PAne878QSKg+G3/X9keXARnbc/lHFjQ7JWQeISzCVNiaBC+0DRAyDf3+++xm72SElOsw nnj7MNsjhsKjNlkn6WFOSgr2tQAlsIE0kqCM/43mtJvd8pMUUh8Up36DqpFmTCSlQODeTYqMoyQpJ QKmjpQla0lu01DAcnaWgfQc4Qf7ZWWB9gdoNzPy2bM/MR5M6+wzgRlwiWrSSKiWgVY78n6QymTOBy b87IhpYA==; Received: by zero.zsh.org with local id 1rvnkK-000BFe-8J; Sun, 14 Apr 2024 00:29:24 +0000 Authentication-Results: zsh.org; iprev=pass (mta03.eastlink.ca) smtp.remote-ip=24.224.136.9; dmarc=none header.from=eastlink.ca; arc=none Received: from mta03.eastlink.ca ([24.224.136.9]:38115) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1rvnjZ-000ARF-6w; Sun, 14 Apr 2024 00:28:38 +0000 Received: from csp02.eastlink.ca ([71.7.199.167]) by mta03.eastlink.ca ([24.224.136.9]) with ESMTPS id <0SBW0DKIAPBME4Q0@mta03.eastlink.ca> for zsh-users@zsh.org; Sat, 13 Apr 2024 21:28:36 -0300 (ADT) Received: from [192.168.0.11] (host-24-207-19-13.public.eastlink.ca [24.207.19.13]) by csp02.eastlink.ca ([71.7.199.167]) with ESMTPSA id vnjXrhuRZ5TsrvnjXrEIK2 (version=TLSv1_2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256); Sat, 13 Apr 2024 21:28:36 -0300 X-Authority-Analysis: v=2.4 cv=deIj3mXe c=1 sm=1 tr=0 ts=661b2334 a=e7T7DzMKK1R988ZCg0wLyw==:117 a=e7T7DzMKK1R988ZCg0wLyw==:17 a=r77TgQKjGQsHNAKrUKIA:9 a=hUgjt2ZHlo_ygVymjnQA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=pGLkceISAAAA:8 a=YPrxMd6dXvqq-t52c8YA:9 a=_W_S_7VecoQA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudeijedguddvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecugfetuffvnffkpffmpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurheptgfkffggfgfuvfhfhfgjsegrtderredtvdejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpefhteethfevgeeuvdelgefgvdevudefueduffdvgfelvddvgfdtieegueeuleeifeenucfkphepvdegrddvtdejrdduledrudefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrdduledrudefpdhhvghloheplgduledvrdduieekrddtrdduudgnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepreerpdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Content-type: multipart/alternative; boundary="------------9qIXlj8HZReJhw9VLppkcspM" Message-id: <7e3493b3-9096-4cd0-b507-028bd850a926@eastlink.ca> Date: Sat, 13 Apr 2024 17:28:35 -0700 MIME-version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: triviality regarding $# counts To: zsh-users@zsh.org References: <97793422-1543-4ba6-b52b-ff93eba03ab1@eastlink.ca> <7ba17739-6024-439b-a4a7-dd88fddfa2e4@eastlink.ca> <7333cf23-1fe7-4b3d-a7c1-f07697c5f062@eastlink.ca> <1e53a3f7-9bdb-45ae-81c7-7d0ec1a6a541@app.fastmail.com> <3cc19e86-e953-4e2f-9e57-30ff84f15fdf@eastlink.ca> <0a0b9ec3-4661-4386-9fbf-b3152a46001e@eastlink.ca> Content-language: en-US From: Ray Andrews In-reply-to: X-Seq: 29813 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. --------------9qIXlj8HZReJhw9VLppkcspM Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2024-04-13 14:01, Bart Schaefer wrote: > redline a b c > would mean > > echo -e "$red$1 $2 $3$nrm" > > One word, with two quoted spaces, instead of three words. That simple example makes it trivially easy to understand.  I remember trying to figure that out previously via the manual and I just got more confused.  There's no merit to obfuscation tho you'd not know that reading some Linux/Unix man pages.  It's a critical lesson: what you see is not what you get, you hafta understand the hidden structure of your data. --------------9qIXlj8HZReJhw9VLppkcspM Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

On 2024-04-13 14:01, Bart Schaefer wrote:
redline a b c
would mean

echo -e "$red$1 $2 $3$nrm"

One word, with two quoted spaces, instead of three words.
That simple example makes it trivially easy to understand.  I remember trying to figure that out previously via the manual and I just got more confused.  There's no merit to obfuscation tho you'd not know that reading some Linux/Unix man pages.  It's a critical lesson: what you see is not what you get, you hafta understand the hidden structure of your data. 

--------------9qIXlj8HZReJhw9VLppkcspM--