We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05d8cc5 commit e2b5805Copy full SHA for e2b5805
src/uu/yes/src/yes.rs
@@ -77,8 +77,8 @@ fn prepare_buffer<'a>(input: &'a str, _buffer: &'a mut [u8; BUF_SIZE]) -> &'a [u
77
}
78
79
pub fn exec(bytes: &[u8]) {
80
- let mut stdin_raw = io::stdout();
81
- let mut writer = ZeroCopyWriter::with_default(&mut stdin_raw, |stdin| stdin.lock());
+ let mut stdout_raw = io::stdout();
+ let mut writer = ZeroCopyWriter::with_default(&mut stdout_raw, |stdout| stdout.lock());
82
loop {
83
// TODO: needs to check if pipe fails
84
writer.write_all(bytes).unwrap();
0 commit comments