Skip to content

date: gnu date allows options after format #10972

@ernstp

Description

@ernstp

date (uutils coreutils) 0.6.0 on Ubuntu 26.04

date -u -d 'Mon Feb 16 09:21:27 UTC 2026' '+%Y-%m-%d'
2026-02-16

date -u '+%Y-%m-%d' -d 'Mon Feb 16 09:21:27 UTC 2026'
date: extra operand '-d'

GNU coreutils Packaged by Ubuntu (9.7-3ubuntu1)

gnudate -u +%Y-%m-%d -d 'Mon Feb 16 09:21:27 UTC 2026'
2026-02-16

Noticed it because strace autoconfig script failed.

date: extra operand '-d'
./build-aux/file-date-gen: Invalid date: 2023-11-21
configure.ac:21: error: assert failed: 1 == 0
aclocal.m4:2405: st_esyscmd_s is expanded from...
configure.ac:21: the top level
autom4te: error: m4 failed with exit status: 1

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