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=-4.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HTML_MESSAGE,MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 28105 invoked from network); 31 Jan 2023 19:14:41 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 31 Jan 2023 19:14:41 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1675192481; b=a1+fjA3voi5ze/EUteGgKhDFsedg663ewKNoi6KwIble6eJpu9ZlTTNc98XhLypB2y/zR3ZyVi fpBTzsoIBJSBxacfjr4JYshHri9YGep2bQ2GiZuF9l9IRs4vLm/6NPjSfCKndInbpSqYq8SWuq IVQfS53cx0t4a/S3MLG1Luux541fCEkgTbDNo2urJGhbOxtYfZ0CAf/juoUrGWZQMBDLoCrZBj dDcvI+XAwWHr3IRVYrrJphhOmgQFXO3EXe2XhejkncmCnA6m4TT/ymBtUOYjRBJ6wOXWpLQ4W/ P2rriXjskOC13RXD7UdektHLFgrxY86pzjZBsqZxc8DfLw==; 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=1675192481; bh=lHIn0JkzdeApu7eufI/3WR58Lfs6c3L+qIfmAxg9qN4=; 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=jmvZnIsj6Ul74Uocf0SyKw7r8C7kxCttbtaEPBDe6gqYj+JudMVIMdZvUFYraEM5QTvCJtD9vR kLsD2Ux9uF7PJpPOjja2K4bfAVCA6ElIKzzf1aLBcnRI1bsOwB9Ea+7QVq5fr2UNx8dzogQWXR taco0bU8zuf3xMT9UIttP96cOgM8jTE/AOlBPFnWkzlSmHQkmTSLWiKVGhL4uUlMLBCWhO2i2q ++XD+ilUtcZ8ptEiF6yX+PEkTFExiNP74lNVbzBEMEu7cV6e3nAJqv4Y8xMMrNURJ6M6LG1Xkv QVG7+p7bsUoIvRIJP4TC+PDpxMiUu9SXV9sZymMU1X1t6w==; 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=vcSBKrKcVAAZ7xC5us7piEhYfDTBjyknTJLOi2g9N44=; b=f5Q6IuQeXAaH+1ozs+7VLt04pM X9Lxhh3N8tTxn+XFiCPl8F4wPVaVHy6OttfWZ+WYiR7i7H/NNEm8lY/p85LzxW4bxAZyTEgvsC2Wa sdyR1+69JwIaYi4UEbZd3O2ufJbz3nPheGlNviAa9fWfn3txoUIqC3ZUGqiDDZDRD5Q+wwicZAAEb Xi3cbUSaDMlVQFTm66KTyObn0JEIPYFDudADUYstPh+3tkOKkncKyujIIATpULreOi52noeQaI9Qa TKiSwSXbjzt4aNB/PrLotqc+xnuCqpNHU4/e32d03on89CYXE7aP2cmSyRYl+Mu3dvy2JuZI308d9 b1r2Xk+Q==; Received: by zero.zsh.org with local id 1pMw5X-000Kso-IU; Tue, 31 Jan 2023 19:14:39 +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]:44010) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1pMw4r-000K9x-6C; Tue, 31 Jan 2023 19:13:58 +0000 Received: from csp02.eastlink.ca ([71.7.199.167]) by mta04.eastlink.ca ([24.224.136.10]) with ESMTPS id <0RPD00D0N5WNWF21@mta04.eastlink.ca> for zsh-users@zsh.org; Tue, 31 Jan 2023 15:13:55 -0400 (AST) Received: from [192.168.0.4] (host-24-207-18-108.public.eastlink.ca [24.207.18.108]) by csp02.eastlink.ca ([71.7.199.167]) with ESMTPSA id Mw4opPpnSjOrIMw4opQuxU (version=TLSv1_2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256); Tue, 31 Jan 2023 15:13:55 -0400 X-Authority-Analysis: v=2.4 cv=Kv6Lm0aN c=1 sm=1 tr=0 ts=63d96873 a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=r77TgQKjGQsHNAKrUKIA:9 a=dHj0QmzCnrwJZ8LSBZsA:9 a=QEXdDO2ut3YA:10 a=pGLkceISAAAA:8 a=HG6IijQ77OtW7VJCHO8A:9 a=-mEKNV10NcD7vgaV:21 a=_W_S_7VecoQA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudefgedguddvfecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpegtkfffgggfuffvfhfhjgesrgdtreertdefjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecuggftrfgrthhtvghrnhepgfdtvdduheevuefhvedtgfeuteefvdfhtdehleethfeiudelueekjeejfffhhefgnecukfhppedvgedrvddtjedrudekrddutdeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrddukedruddtkedphhgvlhhopegludelvddrudeikedrtddrgegnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepreerpdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Content-type: multipart/alternative; boundary="------------dkqTPISLgg2Umoz2MOMlPg92" Message-id: <0810ab9b-ba5d-5b0c-1d63-a307573f1d22@eastlink.ca> Date: Tue, 31 Jan 2023 11:13:54 -0800 MIME-version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: (j.|.) To: zsh-users@zsh.org References: <754f2048-2882-b7a9-560b-7c0564ac112b@eastlink.ca> <6240098f-7327-c73c-cbba-8bf4af5fce5c@eastlink.ca> Content-language: en-US From: Ray Andrews In-reply-to: X-Seq: 28877 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. --------------dkqTPISLgg2Umoz2MOMlPg92 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2023-01-31 10:10, Roman Perepelitsa wrote: > print -r -- ${(j.|.)@} > Ah!  I tried printing everything but that -- the obvious thing. Ok, so the multiple args are converted to one string with bars between and somehow that ends up as an array of space-separated args in '@'.  I think I'm missing something important, I can't recall any such thing with bars like that.  zsh knows that the pattern expands to parameters too, I'm ... I guess the pattern isn't expanded until we know were within the $parameters ... yeah, so that's fine.  But I'd better get this 'bars' thing straight. --------------dkqTPISLgg2Umoz2MOMlPg92 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit


On 2023-01-31 10:10, Roman Perepelitsa wrote:
print -r -- ${(j.|.)@}

Ah!  I tried printing everything but that -- the obvious thing.  Ok, so the multiple args are converted to one string with bars between and somehow that ends up as an array of space-separated args in '@'.  I think I'm missing something important, I can't recall any such thing with bars like that.  zsh knows that the pattern expands to parameters too, I'm ... I guess the pattern isn't expanded until we know were within the $parameters ... yeah, so that's fine.  But I'd better get this 'bars' thing straight.




--------------dkqTPISLgg2Umoz2MOMlPg92--