bug#62497: maybe date -f should generate an error

2023-03-28 Thread Pádraig Brady
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. c

bug#62497: maybe date -f should generate an error

2023-03-28 Thread Pádraig Brady
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ádraigFrom a4525de1ef593cb3873eb88caa7279eb32669bda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1draig

bug#62497: maybe date -f should generate an error

2023-03-28 Thread Paul Eggert
Thanks for reporting that. I installed the attached to fix it.From 9c5e542fd190a14431092e3b6cb45d18fe95f26f Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 28 Mar 2023 01:52:43 -0700 Subject: [PATCH] date: diagnose -f read errors * src/date.c (batch_convert): Diagnose read errors, fixing B

bug#62497: maybe date -f should generate an error

2023-03-28 Thread Sylvestre Ledru
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 su