From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.4 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, FORGED_HOTMAIL_RCVD2,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=no autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 0b297d40 for ; Mon, 17 Jun 2019 08:37:47 +0000 (UTC) Received: (qmail 27552 invoked by alias); 17 Jun 2019 08:37:36 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 44417 Received: (qmail 4446 invoked by uid 1010); 17 Jun 2019 08:37:36 -0000 X-Qmail-Scanner-Diagnostics: from mail-oln040092009063.outbound.protection.outlook.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25482. spamassassin: 3.4.2. Clear:RC:0(40.92.9.63):SA:0(-0.9/5.0):. Processed in 1.843847 secs); 17 Jun 2019 08:37:36 -0000 X-Envelope-From: marcospb19@hotmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at spfa.protection.outlook.com designates 40.92.9.63 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lZGYhGqdWVK+Non4JBLczYwr33VElmWn+cYLSKDnFk8=; b=fgnXru9t/LIIRmlIZnFfnlImp9PgrUTaSAycE/JcVGpz95IVg+4Zvz37v4FByMFdr44quZVSOP2Uz0Cm/F5jfvHlIjKDFiRwJTF0p0q/WakaKkiMNHEeVjX0JrsI+eD+A9SVDDBvIfQLjPLGsCZh+8F7qP5q7n31LQkwQo2JQtP7mH4JfAsWDnVk2NRZ4NIZNJrMQ22sPNyVlyvMykOffEQPG3a5SI50spoUHH9M9coZoy5jPI6Pl1WZOmsYuvsuRPlnSlhrX42PwquZUovZbbhQcvJE9kz7N4j3ZJAuAKEd8jaQqsu0aEvXO3rhTNEIANWLOYpjMd/E3ol3rChk/A== From: =?iso-8859-1?Q?jo=E3o_marcos_pereira_bezerra?= To: "zsh-workers@zsh.org" Subject: Issue with string slices Thread-Topic: Issue with string slices Thread-Index: AQHVJOctA4YdyJJj3EWmYYnou426XQ== Date: Mon, 17 Jun 2019 08:36:58 +0000 Message-ID: Accept-Language: pt-BR, en-US Content-Language: pt-BR X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:BCA562E71829A43AE04388F819DA877A3E748333BCC6FD4C8DA29FA3D27F71BD;UpperCasedChecksum:F8278149493D2108C4BCC54B75E24A1E78D17355743408C7D115B25CF991D739;SizeAsReceived:6535;Count:40 x-tmn: [mKZF8euvMsJKgg9KxxJUIZH2ciNmC0d1rDINNMbjUS8=] x-ms-publictraffictype: Email x-incomingheadercount: 40 x-eopattributedmessage: 0 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(5050001)(7020095)(20181119110)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031322404)(2017031323274)(2017031324274)(1601125500)(1603101475)(1701031045);SRVR:CO1NAM04HT218; x-ms-traffictypediagnostic: CO1NAM04HT218: x-microsoft-antispam-message-info: ctlIVLEyTpWHQ/kvo7ngwUSAKZXWM01JnE+bOGbGZDNBSS645kfXzDqSJjiOzw0SDgQUtpwof9J7NZOAsonjVmQHl7gvdM0E+U4RvoNy6GO35ZJYnZ7E6jIN0HeqVpWEq7w/40zrS8IBvf6b4x3RI7k2OzAapgwY+hMYq8ffCEjS872Q+socN3BvUyGqqa++ Content-Type: multipart/alternative; boundary="_000_RO1P152MB0841421B113C0DFAFF91832AD4EB0RO1P152MB0841LAMP_" MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: e16c3eb0-8b72-4e91-250e-08d6f2fef5f3 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Jun 2019 08:36:58.0520 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1NAM04HT218 --_000_RO1P152MB0841421B113C0DFAFF91832AD4EB0RO1P152MB0841LAMP_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Zsh is not printing the character "-" Example 1: arg=3D"--help" echo ${arg[1]} echo ${arg[2]} echo ${arg[3]} Expected: - - h Got: (new line empty) (new line empty) h Example 2: arg=3D"--help" echo ${arg:0:1} echo ${arg:0:2} echo ${arg:1:1} echo ${arg:1:2} Expected: - - - h Got: (new line empty) -- (new line empty) -h --_000_RO1P152MB0841421B113C0DFAFF91832AD4EB0RO1P152MB0841LAMP_--