Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: cat as a builtin command



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