From 39fd5971dd6fcb6e93db4e33cfa6bedbc4dd8610 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 10 Nov 1993 06:05:02 +0000 Subject: [PATCH] merge with 1.9 --- lib/getdate.y | 2 ++ old/sh-utils/NEWS | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/getdate.y b/lib/getdate.y index 1d56904238..ff0aa66a3d 100644 --- a/lib/getdate.y +++ b/lib/getdate.y @@ -627,6 +627,8 @@ ToSeconds(Hours, Minutes, Seconds, Meridian) if (Hours < 1 || Hours > 12) return -1; return ((Hours + 12) * 60L + Minutes) * 60L + Seconds; + default: + abort (); } /* NOTREACHED */ } diff --git a/old/sh-utils/NEWS b/old/sh-utils/NEWS index 47db619e59..ef4278c7cd 100644 --- a/old/sh-utils/NEWS +++ b/old/sh-utils/NEWS @@ -2,9 +2,10 @@ Major changes in release 1.9: * su fails gracefully when getpass is unable to open /dev/tty. * printenv and tty detect and report write errors * fix bug in stty -* stty supports accepts the new options status and flush on systems that - provide them -* fix bugs in expr +* stty accepts the new options status and flush on systems that provide them +* `expr 1 / 0' gives an error message rather than trying to divide by zero +* expr's `substr' doesn't overrun malloc'd buffer +* expr recognizes the string `0' as zero * better support for Linux, Dec Alpha, and SGI Irix * all programs (even true and false) accept --version and --help options * uname's --version option is no longer equivalent to its -v option -- 2.47.3