mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-12 17:27:50 +08:00
In elvdoc for to-terminated, use slurp to show byte output that includes NUL.
This commit is contained in:
parent
12c7a08c97
commit
3e9e7ce5c8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user