--- Begin Message ---
Subject: |
maybe date -f <directory> should generate an error |
Date: |
Mon, 27 Mar 2023 20:44:40 +0200 |
User-agent: |
Mozilla Thunderbird |
Hello
The usual case is:
$ echo "2023-03-27 08:30:00" > dates.txt
$ echo "2023-04-01 12:00:00" >> dates.txt
$ /usr/bin/date -f dates.txt
Mon Mar 27 08:30:00 CEST 2023
Sat Apr 1 12:00:00 CEST 2023
If done on a non existing file, we get:
$ date -f non-existing
/usr/bin/date: non-existing: No such file or directory
Maybe it should do the same on a directory:
$ /usr/bin/date -f /
doesn't show anything and return 0
Cheers,
Sylvestre
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#62497: maybe date -f <directory> should generate an error |
Date: |
Tue, 28 Mar 2023 01:54:02 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 |
Thanks for reporting that. I installed the attached to fix it.
0001-date-diagnose-f-read-errors.patch
Description: Text Data
--- End Message ---