Skip to content

date: --file flag outputs different date on EOF of empty file in stdin mode #14498

Description

@Devel08

uutils:

$ cargo run date --file -
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.12s
     Running `target/debug/coreutils date --file -`

Thu Sep 10 10:33:53 PM EEST 2026

GNU:

$ date --file -

Thu Sep 10 12:00:00 AM EEST 2026
^C

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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