1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-09-16 19:56:17 +00:00

Merge branch 'master' of github.com:uutils/coreutils into hbina-tr-reimplement-expansion

This commit is contained in:
Hanif Ariffin 2021-11-26 16:39:27 +08:00
commit c86cb91dee
213 changed files with 35450 additions and 439 deletions

View file

@ -357,7 +357,7 @@ fn test_fullblock() {
of!(&tmp_fn),
"bs=128M",
// Note: In order for this test to actually test iflag=fullblock, the bs=VALUE
// must be big enough to 'overwhelm' urandom's store of bytes.
// must be big enough to 'overwhelm' the urandom store of bytes.
// Try executing 'dd if=/dev/urandom bs=128M count=1' (i.e without iflag=fullblock).
// The stats should contain the line: '0+1 records in' indicating a partial read.
// Since my system only copies 32 MiB without fullblock, I expect 128 MiB to be

View file

@ -291,7 +291,7 @@ fn test_interpret_backslash_at_eol_literally() {
#[cfg(not(target_os = "freebsd"))]
fn test_more_than_2_sets() {
new_ucmd!()
.args(&["'abcdefgh'", "'a", "'b'"])
.args(&["'abcdef'", "'a'", "'b'"])
.pipe_in("hello world")
.fails();
}

View file

@ -45,7 +45,7 @@ fn test_long_input() {
// try something long.
#[cfg(windows)]
const TIMES: usize = 500;
let arg = "abcdefg".repeat(TIMES) + "\n";
let arg = "abcdef".repeat(TIMES) + "\n";
let expected_out = arg.repeat(30);
run(&[&arg[..arg.len() - 1]], expected_out.as_bytes());
}

View file

@ -1166,13 +1166,13 @@ pub fn host_name_for(util_name: &str) -> Cow<str> {
{
// make call to `host_name_for` idempotent
if util_name.starts_with('g') && util_name != "groups" {
return util_name.into();
util_name.into()
} else {
return format!("g{}", util_name).into();
format!("g{}", util_name).into()
}
}
#[cfg(target_os = "linux")]
return util_name.into();
util_name.into()
}
// GNU coreutils version 8.32 is the reference version since it is the latest version and the