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=-1.1 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham 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 db514a3d for ; Mon, 17 Jun 2019 08:51:55 +0000 (UTC) Received: (qmail 20931 invoked by alias); 17 Jun 2019 08:51:50 -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: 44418 Received: (qmail 6494 invoked by uid 1010); 17 Jun 2019 08:51:50 -0000 X-Qmail-Scanner-Diagnostics: from mailout1.w1.samsung.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(210.118.77.11):SA:0(-7.0/5.0):. Processed in 2.491018 secs); 17 Jun 2019 08:51:50 -0000 X-Envelope-From: p.stephenson@samsung.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.samsung.com designates 210.118.77.11 as permitted sender) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190617085112euoutp012417552e965b105fd0e54e88dcbc840b~o8EofNMfK2426424264euoutp01W DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1560761472; bh=fMNss1i+tEUN0+FwXSFDuNB+Qb2u088jSFDFmbXuRLA=; h=Subject:From:To:CC:Date:In-Reply-To:References:From; b=umq64Q9AsWYBPuGZ+hiYT6p7QwV0CG7bzxd3eLGEjFUeJWzMB9pBMBKEsYwb8F7sl 9XUonpDQPTvxFhfFo4/WV1m151Breryf3vjSmYZ1104ZAwDvIdcGWNi5dw41rPSjBk TcFdfiFhxWYWSo91Yuk6hnfcyrLzgXerVpjwL+M0= X-AuditID: cbfec7f5-b8fff700000010e5-4a-5d07547f4ff2 Message-ID: <1560761469.6175.1.camel@samsung.com> Subject: Re: Issue with string slices From: Peter Stephenson To: CC: =?ISO-8859-1?Q?jo=E3o?= marcos pereira bezerra Date: Mon, 17 Jun 2019 09:51:09 +0100 In-Reply-To: X-Mailer: Evolution 3.18.5.2-0ubuntu3.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrFIsWRmVeSWpSXmKPExsWy7djP87r1IeyxBgvbWS02NB9gszjY/JDJ gcnjcc8ZNo9VBz8wBTBFcdmkpOZklqUW6dslcGXsfjiZqWAVe8WsuykNjEvZuhg5OSQETCT2 fDzO2sXIxSEksIJR4smLSVDOF0aJFYuvQjmfGSV6JixghGnZseYLC0RiOaPE1vvXGBGq5j6G ajnDKNH38AQThHOBUeLIoV4mkH5eAUOJTQeamUFsYQFViQfPj4HNZQOKT900G8wWEZCUuNZ8 GsxmFvCW+Pv1LQuIzQJU///lB1YQm1MgRuL6/GfMEDdpSGy4eQxqvqDEyZlPWCB65SWat85m BjlCQuA7m8Sl7ifsEA0uEjOfnWSCsIUlXh3fAhWXkfi/cz4TREM7o8SaSa/ZIZweRolNR+9A g8Baou/2RSCbA2iFpsT6XfoQYUeJO/3nWUHCEgJ8EjfeCkIcwScxadt0Zogwr0RHmxBEtZrE jqatjBMYlWchOXsWkrNnIcxfwMi8ilE8tbQ4Nz212DgvtVyvODG3uDQvXS85P3cTIzBFnP53 /OsOxn1/kg4xCnAwKvHwfqhjixViTSwrrsw9xCjBwawkwjvPjiVWiDclsbIqtSg/vqg0J7X4 EKM0B4uSOG81w4NoIYH0xJLU7NTUgtQimCwTB6dUA2PQ85c/aqf9WH7+7KpM74mHlfw+Xsiw P96wQryHV0WjdWHeWanbtjvKzF59q/2+h32S7NTGxbe89mRsYrUXuXMw34VdXdfwe4c3a6yx Um+WjsIprm+L46r9+5Wt9RNqTD3srq5Y0clwZ/arxP17byVumhThb7mce7VhnY3SLqHWQP2V S+f4bFdiKc5INNRiLipOBAAIzXtXDQMAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprBIsWRmVeSWpSXmKPExsVy+t/xe7p1IeyxBvMmCFpsaD7AZnGw+SGT A5PH454zbB6rDn5gCmCK0rMpyi8tSVXIyC8usVWKNrQw0jO0tNAzMrHUMzQ2j7UyMlXSt7NJ Sc3JLEst0rdL0MvY/XAyU8Eq9opZd1MaGJeydTFyckgImEjsWPOFpYuRi0NIYCmjxLvlH9gh EjISn658hLKFJf5c62KDKPrIKHHv4DuojjOMEleWPoJyLjBKHPm+hRGkhVfAUGLTgWZmEFtY QFXiwfNjYHE2oPjUTbPBbBEBSYlrzafBbGYBb4m/X9+ygNgsQPX/X35gBbE5BWIkrs9/xgyx YAOjxMH9s6EaNCVat/+Guk9DYsPNY0wQiwUlTs58wgJRIy/RvHU28wRG4VlIWmYhKZuFpGwB I/MqRpHU0uLc9NxiI73ixNzi0rx0veT83E2MwFjZduznlh2MXe+CDzEKcDAq8fB6NLLFCrEm lhVX5h5ilOBgVhLhnWfHEivEm5JYWZValB9fVJqTWnyI0RToo4nMUqLJ+cA4ziuJNzQ1NLew NDQ3Njc2s1AS5+0QOBgjJJCeWJKanZpakFoE08fEwSnVwGi+0fehSPlznWyeT997ttz8seXj /szSIi4527nvjcMt3vMGLF8tnXKj4G//0Ts1uzV/xbsYu/gHpz06oamss8mL4fB83VUPyxN7 bz8U/XbwY4CHzdYVtwz1brp4Z+70ehYtaHB8YZWc0N6I289mmr3g7nRQFJJYH2gilPLtTUf+ rfdMt/Y8W6zEUpyRaKjFXFScCACPZOZgqwIAAA== X-CMS-MailID: 20190617085110eucas1p1191eb66c3ccc265adf31712aa3d967e2 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190617083759epcas1p11383850c11184f54e3a0b822c9ea12e6 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190617083759epcas1p11383850c11184f54e3a0b822c9ea12e6 References: On Mon, 2019-06-17 at 08:36 +0000, joão marcos pereira bezerra wrote: > Zsh is not printing the character "-" With echo, you mean --- I don't think this has got anything to do with string slices. Correct, this is documented as very long-standing behaviour.        Note that for standards compliance a double dash does not termi-        nate option processing; instead, it is printed  directly.   How-        ever,  a  single  dash  does terminate option processing, so the        first dash, possibly following  options,  is  not  printed,  but        everything  following  it is printed as an argument.  The single        dash behaviour is different from other shells.  For a more  por-        table  way of printing text, see printf, and for a more control-        lable way of printing text within zsh, see print. pws