Commit 421d8b7
committed
date: add hidden aliases --rfc-2822/822 for GNU compat
In GNU date, those two long options are undocumented aliases for the email format:
❯ date -R
Wed, 03 Sep 2025 17:55:15 +0200
❯ date --rfc-822
Wed, 03 Sep 2025 17:55:22 +0200
❯ date --rfc-2822
Wed, 03 Sep 2025 17:55:27 +0200
Initially noticed as the 2822 option is used in the glibc packaging in Debian and Ubuntu.
Signed-off-by: Simon Chopin <simon.chopin@canonical.com>1 parent 7f68266 commit 421d8b7
2 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
302 | 304 | | |
303 | 305 | | |
304 | 306 | | |
| 307 | + | |
| 308 | + | |
305 | 309 | | |
306 | 310 | | |
307 | 311 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
0 commit comments