mirror of
https://github.com/nushell/nushell.git
synced 2025-07-01 15:11:52 +02:00
Add an explicit 'print' command (#4535)
This commit is contained in:
@ -146,7 +146,19 @@ impl Iterator for RawStream {
|
||||
}
|
||||
Err(e) => Some(Err(e)),
|
||||
},
|
||||
None => None,
|
||||
None => {
|
||||
if !self.leftover.is_empty() {
|
||||
let output = Ok(Value::Binary {
|
||||
val: self.leftover.clone(),
|
||||
span: self.span,
|
||||
});
|
||||
self.leftover.clear();
|
||||
|
||||
Some(output)
|
||||
} else {
|
||||
None
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user