mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-02 05:57:46 +00:00
commit
1396295877
3 changed files with 4 additions and 4 deletions
|
@ -938,7 +938,7 @@ fn copy_directory(root: &Path, target: &Target, options: &Options) -> CopyResult
|
|||
Some(parent) => {
|
||||
#[cfg(windows)]
|
||||
{
|
||||
// On Windows, some pathes are starting with \\?
|
||||
// On Windows, some paths are starting with \\?
|
||||
// but not always, so, make sure that we are consistent for strip_prefix
|
||||
// See https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file for more info
|
||||
let parent_can = adjust_canonicalization(parent);
|
||||
|
|
|
@ -344,7 +344,7 @@ impl<'a> SplitWriter<'a> {
|
|||
///
|
||||
/// In addition to errors reading/writing from/to a file, the following errors may be returned:
|
||||
/// - if no line matched, an [`::CsplitError::MatchNotFound`].
|
||||
/// - if there are not enough lines to accomodate the offset, an
|
||||
/// - if there are not enough lines to accommodate the offset, an
|
||||
/// [`::CsplitError::LineOutOfRange`].
|
||||
fn do_to_match<I>(
|
||||
&mut self,
|
||||
|
@ -471,7 +471,7 @@ where
|
|||
}
|
||||
}
|
||||
|
||||
/// Rewind the iteration by outputing the buffer's content.
|
||||
/// Rewind the iteration by outputting the buffer's content.
|
||||
fn rewind_buffer(&mut self) {
|
||||
self.rewind = true;
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ use std::io::{BufWriter, Result};
|
|||
use std::process::{Child, Command, Stdio};
|
||||
/// A writer that writes to a shell_process' stdin
|
||||
///
|
||||
/// We use a shell process (not directy calling a sub-process) so we can forward the name of the
|
||||
/// We use a shell process (not directly calling a sub-process) so we can forward the name of the
|
||||
/// corresponding output file (xaa, xab, xac… ). This is the way it was implemented in GNU split.
|
||||
struct FilterWriter {
|
||||
/// Running shell process
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue