Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Issue with string slices
- X-seq: zsh-workers 44419
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- Subject: Re: Issue with string slices
- Date: Mon, 17 Jun 2019 11:05:32 +0200
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>, joão marcos pereira bezerra <marcospb19@xxxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4CPmHvZ/uVnB6pn8TtMLidSBi7MX/x9eFGHgvcfG2aY=; b=taYLAZ5RFbhaClBsg1bRPWGqtzpOC8Z50WVexEKfMlCZy97HSgLT1BlIPeRNDBAgVo QkFbzbvOKgzgWb+l3p4ioyXZy4X2m1db/FKRnO1l67XnuJf2aZRGvUTxy4Gca3hx/1P3 z6klqjK0jsLa16FjwVvsBDiaCCitRGK34FIdgAgQzXp4bxo4Znp+FekVITowPnUv9XHx JRrEtZTRcVtupo4+TZ7R88H3tN6JpQdPufwBMgzi6FyDFXj5tqaGKvZUXEz67rGBq7S5 qm0UMGamxddjkCxS0fw0EpW0yUzAT3G1aLoJnx7eYdoSVYOdsWUuxFpbW7R7FODKPdey Uw1A==
- In-reply-to: <1560761469.6175.1.camel@samsung.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> <1560761469.6175.1.camel@samsung.com>
To print $something as is, use one of these forms:
echo -nE - "$something"
print -nr -- "$something"
printf '%s' "$something"
The first two are ZSH specific, the last is portable. ZSH also allows
you to omit quotes here unless SH_WORD_SPLIT option is set.
Roman.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author