zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.stephenson@samsung.com>
To: <zsh-workers@zsh.org>
Cc: "joão marcos pereira bezerra" <marcospb19@hotmail.com>
Subject: Re: Issue with string slices
Date: Mon, 17 Jun 2019 09:51:09 +0100	[thread overview]
Message-ID: <1560761469.6175.1.camel@samsung.com> (raw)
In-Reply-To: <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


  reply	other threads:[~2019-06-17  8:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20190617083759epcas1p11383850c11184f54e3a0b822c9ea12e6@epcas1p1.samsung.com>
2019-06-17  8:36 ` joão marcos pereira bezerra
2019-06-17  8:51   ` Peter Stephenson [this message]
2019-06-17  9:05     ` Roman Perepelitsa
2019-06-17 16:15       ` joão marcos pereira bezerra
2019-06-18 18:12       ` Stephane Chazelas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1560761469.6175.1.camel@samsung.com \
    --to=p.stephenson@samsung.com \
    --cc=marcospb19@hotmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).