Skip to content

touch -m -h -d 2009-10-10 link is failing with "Unable to parse date" #2311

@sylvestre

Description

@sylvestre

With

touch a 
ln -s a link
touch -m -h -d 2009-10-10 link

works with gnu
but fails on us with

$ ./target/release/coreutils touch -m -h -d 2009-10-10 link
thread 'main' panicked at 'Unable to parse date
Invalid day.', src/uu/touch/src/touch.rs:243:19
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Code is in:
https://github.com/uutils/coreutils/blob/master/src/uu/touch/src/touch.rs#L243

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions