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.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 6113 invoked from network); 10 Mar 2022 14:26:25 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 10 Mar 2022 14:26:25 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1646922385; b=O10W/0uuTFiOnjSl2bJg0NggJ+hOXiYyZE6a45N67+4Pxsz2ZGeGzNRIqCPvsnn4uzwss3aRV9 q42mYVSOt5p7kPIjRfmmeztWTjApBGd/REYvJ7s/Af9dEadAUrYXfVcl5vpye/xawRbAyugCa2 +Z6TENwgswd+9HRlh1l3BZToX9bYkZKy2p+Su9rrVodJSPYBc7bKjy+7QTurF+qqJsEF3mJYh1 M1b1J4g6ibB0ZSTY2yPHJUsiwu63TpFl7nsWx3PWG8lIpzv6+Ak+bnzLv+DxVDiyEPgXDgAKY3 vsZRY2jxC16v0Ml6slTCQkE8qwAAmBmW9eGB2S7ux6suPQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (smtpq2.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.97; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1646922385; bh=LTTG20pOFQ8jHRH8s8Xv+MsrguDCrLwfl0oU60gBaVk=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject: References:In-Reply-To:Message-ID:To:From:Date:DKIM-Signature: DKIM-Signature; b=OLEmMfj9P7VGegy20u9zz+C47zffFpShKqeTK3tVtJbSuFPLrqYF4fbTMtRraORrhcXgRXDv7N mIDIkyfVFllDDs18HL+I26tiAnALpPNg7121iYHitxqYzcS6UNrr5Du1d/1wp9ZYe6ZJPYWgMt 2MVppS3/lQdj/fmBcJylV//TLEQ6VUItnlVnNPasS7gOxNssrdL9pyVKk/vKH2jtpJ/vNVHLe7 ECMx5vr4cl949KudU8DiRd6RAiyCRkObXo0TETJ8/i/X1q436+uCTCO8Ro2nS3ZxYGG5N68Wej eLgv81V6KGwvHhkFp0WqU4K5No1SUiNNrHoWwyeY+ic2FQ==; 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-Transfer-Encoding: Content-Type:MIME-Version:Subject:References:In-Reply-To:Message-ID:To:From: Date:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=dTvAWpt9XNBhoZahbum1j0F22FTCrPjMruyJak+o+sA=; b=al0pPmf1knIexSQSB00lCh9lUz kGCEmlNq2IBF7fUSoysVmJWCVPLtxr/iUCWiU7hpHCc54HlDXJkr+9vjWn/O2dAOabF2fL1WryOJv SBGZUq8kSh7Iu+BASMV0Hbva8urQVHmpmghkU6FYCO2hTcpphtVCc3L0vZB3ydIw4KEPrH6BCerAM Kpmhkz7qP6S0ySrJ5CphZnyyRG+wjgMPocaaijq8cpuu1oJtf2ueyZE3LnxvtcoCmQkwE5q6LxdxN +DkN8N010NLRWZp1dDRg8EIWu83Jt1cCy5/DKTX1CLidi/4gjVGa+/HlgXG6iLmrUjNCqZdtinJLM Fk1RqAmg==; Received: from authenticated user by zero.zsh.org with local id 1nSJkG-000CHy-OZ; Thu, 10 Mar 2022 14:26:24 +0000 Authentication-Results: zsh.org; iprev=pass (smtpq2.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.97; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none Received: from smtpq2.tb.ukmail.iss.as9143.net ([212.54.57.97]:34506) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1nSJjj-000Byy-VF; Thu, 10 Mar 2022 14:25:53 +0000 Received: from [212.54.57.82] (helo=smtp3.tb.ukmail.iss.as9143.net) by smtpq2.tb.ukmail.iss.as9143.net with esmtp (Exim 4.90_1) (envelope-from ) id 1nSJjj-0000nP-88 for zsh-workers@zsh.org; Thu, 10 Mar 2022 15:25:51 +0100 Received: from oxbe25.tb.ukmail.iss.as9143.net ([172.25.160.156]) by smtp3.tb.ukmail.iss.as9143.net with ESMTP id SJjinaILPl7D1SJjjnvkf0; Thu, 10 Mar 2022 15:25:51 +0100 X-Env-Mailfrom: p.w.stephenson@ntlworld.com X-Env-Rcptto: zsh-workers@zsh.org X-SourceIP: 172.25.160.156 X-CNFS-Analysis: v=2.4 cv=Xo7phHJ9 c=1 sm=1 tr=0 ts=622a0a6f cx=a_exe a=NA7IgXeTfPXpJV+SL5V8Rw==:117 a=wbvTLvLwOfMA:10 a=IkcTkHD0fZMA:10 a=7H6ixmLU1AQA:10 a=pGLkceISAAAA:8 a=N898d1J4AAAA:8 a=y_LqOmuUt5KEZFVTSzEA:9 a=QEXdDO2ut3YA:10 a=4OhKILdWXy8MGewZJRtY:22 X-Authenticated-Sender: p.w.stephenson@ntlworld.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntlworld.com; s=meg.feb2017; t=1646922351; bh=LTTG20pOFQ8jHRH8s8Xv+MsrguDCrLwfl0oU60gBaVk=; h=Date:From:To:In-Reply-To:References:Subject; b=lH9U8O43/kfMvVOVpBpODcMfWd7GOi19Dgkth1YWBRiU7rda9CAIlM+xRBCeIE3Hm xdOizzx4r/cqdX2FH7+lZ5jG8mAmg3qC6O7ALij+3QGdg8eeAhRriZP8zm+v+8m6Gd kLfQZmAjlcO6r6Xj2OEMCUMJIL2aYwxaxAuLxMgHE3jQN25BNe2d3Tq3lclKcCYRzy U6OMp46+1vEPIuDOTO9w+zk904BRlGWVd4emlsQpv7EXoA35DO8Opqb5199lkYyWx/ 4cBE8TKF2zMEuyEwcz++WxkO1dpMPlSKjKwHeoVPhr8nSDaEWKY6f9Lt1fZNWVPDzc RsoELgHuVo3zA== Date: Thu, 10 Mar 2022 14:25:50 +0000 (GMT) From: Peter Stephenson To: Zsh hackers list Message-ID: <7694652.296620.1646922350773@mail2.virginmedia.com> In-Reply-To: References: <20220310075026.ovwlhxq24cmda5s3@chazelas.org> Subject: Re: "${*:offset:length}" and ksh93/bash compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.8.4-Rev72 X-Originating-IP: 147.161.167.85 X-Originating-Client: open-xchange-appsuite X-CMAE-Envelope: MS4xfL5tRvIudq95GNPbpP8m0Yq4H5iN2fhuKtOHwKCLXMuYl0NMiIIUbWdc7Xb4zlwaAte2u1HM/XAQ/xoZ19WX5QCKDoWudJIs9Nc3kWEKnDVpnxUon+gK 56ANmEQRoCsB4/ktNu9xjU17OH92eXnDj130DQBTxAEC5zIpeMXETEkKGa8/LfZglDoLg8LA1LakAK7oe9AXkkjjHoumt+lBxLigZtFSPFHTdMVJ9s+JaWT5 X-Seq: 49822 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On 10 March 2022 at 12:48 Mikael Magnusson wrote: > On 3/10/22, Stephane Chazelas wrote: > > Should zsh align with bash/ksh there. >=20 > If we do, it would probably look something like this (does not handle > all cases), unless someone has a better idea... I think it should change --- the documentation is already clear this is here to please users of other shells, not native zsh. Otherwise we end up with what's (as we say where I come from) neither nowt nor something. This syntax gives effects similar to parameter subscripting in the fo= rm $name[start,end], but is compatible with other shells; note that both of= f=E2=80=90 set and length are interpreted differently from the components of a su= b=E2=80=90 script. pws