Zsh Mailing List Archive
Messages sorted by:
Reverse Date
,
Date
,
Thread
,
Author
read string containing null
X-seq
: zsh-users 27254
From
: Pier Paolo Grassi <pierpaolog@xxxxxxxxx>
To
: Zsh-Users List <zsh-users@xxxxxxx>
Subject
: read string containing null
Date
: Thu, 21 Oct 2021 14:35:22 +0200
Archived-at
: <https://zsh.org/users/27254>
List-id
: <zsh-users.zsh.org>
Hello, I just found out:
echo -e - a$'\000'b | IFS='' builtin read -r -d '' xx; echo -n - $xx
result is "a"
is it possible for builtin read not to stop an null bytes? I found nothing in documentation.
thanks
Pier Paolo Grassi
Follow-Ups
:
Re: read string containing null
From:
Peter Stephenson
Messages sorted by:
Reverse Date
,
Date
,
Thread
,
Author