[Bug 2142586] Re: date complains if +%F is not the last argument
Mario Splivalo
2142586 at bugs.launchpad.net
Thu Feb 26 14:42:37 UTC 2026
*** This bug is a duplicate of bug 2142588 ***
https://bugs.launchpad.net/bugs/2142588
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to rust-coreutils in Ubuntu.
https://bugs.launchpad.net/bugs/2142586
Title:
date complains if +%F is not the last argument
Status in rust-coreutils:
Fix Released
Status in rust-coreutils package in Ubuntu:
Confirmed
Bug description:
On Ubuntu 26.04 (tested on the latest lxc image as of today), date
seems to require +%F to be last argument provided.
ubuntu at res-datetest:~$ date +%F --utc
date: extra operand '--utc'
ubuntu at res-datetest:~$ date +%F -d '2000-10-01'
date: extra operand '-d'
While this is in line with what the date man page states, the date
behavior in Ubuntu Resolute breaks what was previously working.
The +%F argument could be placed anywhere in the argument list, even
on 25.10:
ubuntu at que-datetest:~$ grep PRETTY /etc/os-release
PRETTY_NAME="Ubuntu 25.10"
ubuntu at que-datetest:~$ date +%F --utc
2026-02-24
ubuntu at que-datetest:~$ date +%F -d '2000-10-01'
2000-10-01
mario at MP52 ~> grep PRETTY /etc/os-release
PRETTY_NAME="Ubuntu 24.04.3 LTS"
mario at MP52 ~> date +%F --utc
2026-02-24
mario at MP52 ~> date +%F -d '2000-10-01'
2000-10-01
mario at enchilada:~$ grep PRETTY /etc/os-release
PRETTY_NAME="Ubuntu 22.04.5 LTS"
mario at enchilada:~$ date +%F --utc
2026-02-24
mario at enchilada:~$ date +%F -d '2000-10-01'
2000-10-01
mario at enchilada:~$
(I know this one is super obsolete; I just wanted to show how date behaved for a VERY long time.)
mario at pic:~$ grep PRETTY /etc/os-release
PRETTY_NAME="Ubuntu 14.04.6 LTS"
mario at pic:~$ date +%F --utc
2026-02-24
mario at pic:~$ date +%F -d '2000-10-01'
2000-10-01
To manage notifications about this bug go to:
https://bugs.launchpad.net/rust-coreutils/+bug/2142586/+subscriptions
More information about the foundations-bugs
mailing list