Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Issue with string slices
- X-seq: zsh-workers 44418
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: <zsh-workers@xxxxxxx>
- Subject: Re: Issue with string slices
- Date: Mon, 17 Jun 2019 09:51:09 +0100
- Cc: joão marcos pereira bezerra <marcospb19@xxxxxxxxxxx>
- Cms-type: 201P
- 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=
- In-reply-to: <RO1P152MB0841421B113C0DFAFF91832AD4EB0@RO1P152MB0841.LAMP152.PROD.OUTLOOK.COM>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CGME20190617083759epcas1p11383850c11184f54e3a0b822c9ea12e6@epcas1p1.samsung.com> <RO1P152MB0841421B113C0DFAFF91832AD4EB0@RO1P152MB0841.LAMP152.PROD.OUTLOOK.COM>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author