One of a common usecase of yes is generating periodic binary data which is blocked by
|
// But, on Windows, we must hop through a String. |
|
#[cfg(not(any(unix, target_os = "wasi")))] |
|
{ |
|
for part in itertools::intersperse(i.map(|a| a.to_str()), Some(" ")) { |
|
let bytes = part |
|
.ok_or_else(|| USimpleError::new(1, translate!("yes-error-invalid-utf8")))? |
|
.as_bytes(); |
|
buf.extend_from_slice(bytes); |
|
} |
|
} |
currently.
One of a common usecase of
yesis generating periodic binary data which is blocked bycoreutils/src/uu/yes/src/yes.rs
Lines 73 to 82 in 1717352
currently.