Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: cat as a builtin command
- X-seq: zsh-workers 33066
- From: Stephane Chazelas <stephane.chazelas@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: cat as a builtin command
- Date: Fri, 29 Aug 2014 21:15:57 +0100
- In-reply-to: <20140829140343.7ed2a891__13925.6726870828$1409317564$gmane$org@pwslap01u.europe.root.pri>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <BLU436-SMTP2045383EF41756D3376DB3CF4DB0@phx.gbl> <20140829140343.7ed2a891__13925.6726870828$1409317564$gmane$org@pwslap01u.europe.root.pri>
2014-08-29 14:03:43 +0100, Peter Stephenson:
[...]
> mycat() {
> emulate -L zsh
> unsetopt multibyte
> zmodload zsh/mapfile
> print -r $mapfile[$1]
> }
[...]
That should be:
print -rn -- $mapfile[$1]
What would be the possible effects of *not* turning off
"multibyte" here?
--
Stephane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author