1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 19:47:45 +00:00

Use the last, not first, two digits as the year

This commit is contained in:
Jeffrey Finkelstein 2025-02-06 22:02:47 -05:00
parent 6dfa1f8276
commit c23e1db9c5
2 changed files with 32 additions and 13 deletions

View file

@ -935,9 +935,9 @@ fn test_obsolete_posix_format_with_year() {
let (at, mut ucmd) = at_and_ucmd!();
ucmd.env("_POSIX2_VERSION", "199209")
.env("POSIXLY_CORRECT", "1")
.args(&["9001010000", "11111111"])
.args(&["0101000090", "11111111"])
.succeeds()
.no_output();
assert!(at.file_exists("11111111"));
assert!(!at.file_exists("01010000"));
assert!(!at.file_exists("0101000090"));
}