From c6389a1340cdc2a74dbbba5db13df009ada3c04c Mon Sep 17 00:00:00 2001 From: Assaf Gordon Date: Thu, 8 Sep 2016 01:00:23 -0400 Subject: date: add '--debug' option Usage example: date --debug -d 'now + 3 days' Print parsing and debugging information to stderr when using date's -d/--date option. See: http://lists.gnu.org/archive/html/coreutils/2016-01/msg00076.html * src/date.c (main): Add '--debug' option, enable debugging in gnulib's parse-datetime.y module. * tests/misc/date.pl: Repeat tests with '--debug' enable, ensure no regression. * tests/misc/date-debug.sh: Test output of '--debug' option. * tests/local.mk: Add above test. * NEWS: Mention new option. * doc/coreutils.texi: Likewise. --- NEWS | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index e99c88b96..580c5f4d7 100644 --- a/NEWS +++ b/NEWS @@ -71,6 +71,11 @@ GNU coreutils NEWS -*- outline -*- tail -f uses polling for "prl_fs" and "smb2", inotify for "m1fs", and attempts inotify for "wslfs". +** New Features + + date now accepts the --debug option, to annotate the parsed date string, + display timezone information, and warn about potential misuse. + * Noteworthy changes in release 8.25 (2016-01-20) [stable] -- cgit v1.2.3-70-g09d2