In elvdoc for to-terminated, use slurp to show byte output that includes NUL.

This commit is contained in:
Qi Xiao 2021-06-11 14:49:43 +01:00
parent 12c7a08c97
commit 3e9e7ce5c8

View File

@ -768,10 +768,10 @@ func toLines(fm *Frame, inputs Inputs) {
// The `$terminator` must be a single ASCII character such as `"\x00"` (NUL).
//
// ```elvish-transcript
// ~> put a b | to-terminated "\x00" | cat -v
// a^@b^@
// ~> to-terminated "\x00" [a b] | cat -v
// a^@b^@
// ~> put a b | to-terminated "\x00" | slurp
// ▶ "a\x00b\x00"
// ~> to-terminated "\x00" [a b] | slurp
// ▶ "a\x00b\x00"
// ```
//
// @cf from-terminated to-lines