Skip to content

date is too strict about argument ordering #10910

@justincormack

Description

@justincormack

date is now too strict about argument ordering. This was working in 0.2.2 as shipped with Ubuntu but in 0.6.0 it broke again

date "+%Y%m%d%H%M%S" --date "@$(date +%s)"

errors with date: extra operand '--date' - it does work if you reorder the arguments as date --date "@$(date +%s)" "+%Y%m%d%H%M%S"

Found this while trying to build systemd as they use the arguments in this order.

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