1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2026-01-17 10:41:03 +00:00
uutils-coreutils/tests
Jeffrey Finkelstein 6dfa1f8276 touch: support obsolete POSIX timestamp argument
Support obsolete form of timestamp argument for old POSIX versions. In
summary, when older versions of POSIX are used and the first positional
argument looks like a date and time, then treat it as a timestamp
instead of as a filename. For example, before this commit

    _POSIX2_VERSION=199209
    POSIXLY_CORRECT=1
    touch 01010000 11111111

would create two files, `01010000` and `11111111`. After this commit,
the first argument is interpreted as a date and time (in this case,
midnight on January 1 of the current year) and that date and time are
set on the file named `11111111`.

Fixes #7180.
2025-02-05 22:04:47 -05:00
..
benches/factor num-prime => '0.4.4' 2024-10-15 22:46:44 +02:00
by-util touch: support obsolete POSIX timestamp argument 2025-02-05 22:04:47 -05:00
common Tests: provides easy mount of temp fs (#7249) 2025-02-01 19:01:49 +01:00
fixtures comm: don't use files for test 2025-01-15 16:13:51 +01:00
test_util_name.rs Tests: provides easy mount of temp fs (#7249) 2025-02-01 19:01:49 +01:00
tests.rs relpath: remove 2023-10-04 16:13:06 +02:00