diff options
author | Oliver Kiddle <opk@zsh.org> | 2022-12-17 00:09:37 +0100 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2022-12-17 00:37:19 +0100 |
commit | 35a2f155c3b92e67957325e1f49e409546378e3e (patch) | |
tree | 7c4593cf459ae5067627043c7fba15866c48c8c6 /Doc/Zsh | |
parent | 2701ab161df1f259b8292a650a4ea5cebd668d81 (diff) | |
download | zsh-35a2f155c3b92e67957325e1f49e409546378e3e.tar.gz zsh-35a2f155c3b92e67957325e1f49e409546378e3e.tar.xz zsh-35a2f155c3b92e67957325e1f49e409546378e3e.zip |
51214: handle read -d and a delimiter that can't be decoded into a character
Terminate input at the raw byte value of the delimiter. Also document and test the use of an empty string as a way to specify NUL as the delimiter.
Diffstat (limited to 'Doc/Zsh')
-rw-r--r-- | Doc/Zsh/builtins.yo | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo index b6217f66d..56428a714 100644 --- a/Doc/Zsh/builtins.yo +++ b/Doc/Zsh/builtins.yo @@ -1589,7 +1589,8 @@ Input is read from the coprocess. ) item(tt(-d) var(delim))( Input is terminated by the first character of var(delim) instead of -by newline. +by newline. For compatibility with other shells, if var(delim) is an +empty string, input is terminated at the first NUL. ) item(tt(-t) [ var(num) ])( Test if input is available before attempting to read. If var(num) |