Make the r command filename obligatory, similar to what FreeBSD and NetBSD
authormartijn <martijn@openbsd.org>
Fri, 8 Dec 2017 18:41:59 +0000 (18:41 +0000)
committermartijn <martijn@openbsd.org>
Fri, 8 Dec 2017 18:41:59 +0000 (18:41 +0000)
commitd077d0ac785acd35b8eafc81df1f5876edf502f2
tree8cdfaf16f2df5648b23d7408a9f0ef6630548c96
parenta3024c7b84be64c47c5fb63a0c1d9b4e4794d684
Make the r command filename obligatory, similar to what FreeBSD and NetBSD
do for several years.
While here make corresponding error message for missing read and write file
consistent between commands/flag, and shrink the the code of the w flag of
the s command by making it use the same code as the w command.

Prompted by a larger diff by kshe59 <at> zoho <dot> eu
OK millert@
usr.bin/sed/compile.c
usr.bin/sed/sed.1