GNU bug report logs - #62497
maybe date -f <directory> should generate an error

Previous Next

Package: coreutils;

Reported by: Sylvestre Ledru <sylvestre <at> debian.org>

Date: Tue, 28 Mar 2023 07:17:04 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 62497 in the body.
You can then email your comments to 62497 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#62497; Package coreutils. (Tue, 28 Mar 2023 07:17:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Sylvestre Ledru <sylvestre <at> debian.org>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Tue, 28 Mar 2023 07:17:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Sylvestre Ledru <sylvestre <at> debian.org>
To: bug-coreutils <at> gnu.org
Subject: maybe date -f <directory> should generate an error
Date: Mon, 27 Mar 2023 20:44:40 +0200
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






Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Tue, 28 Mar 2023 08:55:02 GMT) Full text and rfc822 format available.

Notification sent to Sylvestre Ledru <sylvestre <at> debian.org>:
bug acknowledged by developer. (Tue, 28 Mar 2023 08:55:02 GMT) Full text and rfc822 format available.

Message #10 received at 62497-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Sylvestre Ledru <sylvestre <at> debian.org>
Cc: 62497-done <at> debbugs.gnu.org
Subject: Re: bug#62497: maybe date -f <directory> should generate an error
Date: Tue, 28 Mar 2023 01:54:02 -0700
[Message part 1 (text/plain, inline)]
Thanks for reporting that. I installed the attached to fix it.
[0001-date-diagnose-f-read-errors.patch (text/x-patch, attachment)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#62497; Package coreutils. (Tue, 28 Mar 2023 12:43:02 GMT) Full text and rfc822 format available.

Message #13 received at 62497 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: 62497 <at> debbugs.gnu.org, eggert <at> cs.ucla.edu, sylvestre <at> debian.org
Subject: Re: bug#62497: maybe date -f <directory> should generate an error
Date: Tue, 28 Mar 2023 13:42:38 +0100
[Message part 1 (text/plain, inline)]
On 28/03/2023 09:54, Paul Eggert wrote:
> Thanks for reporting that. I installed the attached to fix it.

Looks good thanks.
Also worth the attached test and NEWS,
which I've pushed.

cheers,
Pádraig
[date-f-test.patch (text/x-patch, attachment)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#62497; Package coreutils. (Tue, 28 Mar 2023 13:29:01 GMT) Full text and rfc822 format available.

Message #16 received at 62497 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: 62497 <at> debbugs.gnu.org, eggert <at> cs.ucla.edu, sylvestre <at> debian.org
Subject: Re: bug#62497: maybe date -f <directory> should generate an error
Date: Tue, 28 Mar 2023 14:27:58 +0100
[Message part 1 (text/plain, inline)]
On 28/03/2023 13:42, Pádraig Brady wrote:
> On 28/03/2023 09:54, Paul Eggert wrote:
>> Thanks for reporting that. I installed the attached to fix it.
> 
> Looks good thanks.
> Also worth the attached test and NEWS,
> which I've pushed.

I'm also applying the attached for fix the same issue in dircolors.

cheers,
Pádraig
[dircolors-read-error.patch (text/x-patch, attachment)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 26 Apr 2023 11:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 55 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.