1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-02 22:17:45 +00:00

yes: support non-UTF-8 args

Also, tighten the creation of the output buffer.  Rather than copy "y\n"
8192 times, or any other input some number of times, it can be doubled
in place using Vec::extend_from_within.
This commit is contained in:
Jed Denlea 2023-05-14 15:29:54 -07:00
parent caaf25a003
commit 3870ee252a
4 changed files with 161 additions and 28 deletions

1
Cargo.lock generated
View file

@ -3379,6 +3379,7 @@ name = "uu_yes"
version = "0.0.18"
dependencies = [
"clap",
"itertools",
"nix",
"uucore",
]