NetBSD/usr.bin
christos 3e95193d67 sed(1): Don't force a newline on last line, if input stream doesn't have one
While here, change how we check if the current line is the last one.
Before, we just checked if there were more files after the current one.
Now, we check the actual content of those files: they files may not have
a line at all. This matches the definition of the "last line" by the
Open Group.

The new behavior is closer to GNU sed.

From FreeBSD (9dd857db3dc558dc61dc8674d204ebc83cac0739), requested by mrg@
2020-05-15 22:39:54 +00:00
..
apply
apropos
asa new sentence, new line 2020-01-31 00:15:38 +00:00
at PR bin/53986 from Christian Weisgerber 2019-02-16 17:56:57 +00:00
audio audioplay.1: generalize a reference to web browsers 2020-04-10 21:33:27 +00:00
audiocfg Revert about index number changes. It breaks its usage and output format. 2019-08-24 07:39:42 +00:00
banner Add history section 2020-04-07 17:57:33 +00:00
base64 Provide MacOS/X compatible flags (where possible) 2018-07-25 03:45:34 +00:00
basename compare pointers with NULL not '\0'. 2019-02-01 08:29:03 +00:00
bdes Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
biff
bthset
btkey
btpin introduce some common variables for use in GCC warning disables: 2019-10-13 07:28:04 +00:00
bzip2
bzip2recover
c11
c89
c99
cal Remove superfluous Pp. 2018-05-29 08:37:33 +00:00
calendar Fix typo 2020-05-11 12:42:58 +00:00
cap_mkdb
cdplay
checknr
chflags
chpass Specify SANITIZER_RENAME_SYMBOL in chpass 2018-06-25 18:05:25 +00:00
cksum Explicitly cast the number of bytes passed to crc_buf() to size_t, as 2020-04-27 07:30:54 +00:00
cleantags
cmp Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
col
colcrt - add or adjust /* FALLTHROUGH */ where appropriate 2019-02-03 03:19:25 +00:00
colrm
column
comm
compress Add EXIT STATUS section. Use Ex. New sentence, new line. 2017-07-04 06:58:55 +00:00
config Avoid depending on common symbols. 2020-04-03 19:53:41 +00:00
crunch New sentence, new line. Fix typo. 2020-01-02 23:21:14 +00:00
csplit Compare return value of fputs(3) with EOF instead of 0. 2017-07-30 23:02:53 +00:00
ctags - add or adjust /* FALLTHROUGH */ where appropriate 2019-02-03 03:19:25 +00:00
cut
cvslatest introduce some common variables for use in GCC warning disables: 2019-10-13 07:28:04 +00:00
db
dc dc was in v1 2019-09-01 18:15:57 +00:00
deroff - add or adjust /* FALLTHROUGH */ where appropriate 2019-02-03 03:19:25 +00:00
dirname
du du was in v1 2019-09-01 18:18:42 +00:00
eject
elf2aout Sort options in usage. 2019-05-19 09:14:13 +00:00
elf2ecoff
env Fix a typo (extra `s') 2020-02-08 11:10:08 +00:00
error use getline(3) 2020-01-10 18:35:29 +00:00
expand
extattr
false
fdformat
fgen Use more macros. 2017-07-04 07:07:23 +00:00
fincore
find Inspired by PR pkg/53543 2018-09-04 15:16:15 +00:00
finger Add lastlogx support 2020-05-07 13:40:20 +00:00
flock fix a bug gcc 8 picked up: use ~LOCK_NB to look for LOCK_UN, 2019-10-04 16:27:00 +00:00
fmt Wse wide functions to avoid file corruption. Q+D because it does not 2017-10-13 00:11:56 +00:00
fold
fpr Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
from
fsplit
fstat nuke random stuff that does not exist anymore. 2020-05-02 18:42:30 +00:00
ftp update ftp version to 20190622 2020-02-26 05:55:27 +00:00
gcore compare pointers with NULL not '\0'. 2019-02-01 08:29:03 +00:00
genassym
gencat Use An -nosplit. Use Mt. Fix some mandoc lint. 2018-07-28 08:03:41 +00:00
getaddrinfo
getconf
getent Remove superfluous Tn. 2017-10-23 01:06:05 +00:00
getopt
gettext
gprof Restore the MKGROFF=bo MKCXX=yes build 2018-06-11 14:18:16 +00:00
grep Fix asan heap buffer overflow. from enh at google. 2019-04-05 13:34:41 +00:00
gzip use the data size in case stdout was a pipe (M. Levinson) 2018-11-11 01:42:36 +00:00
head Add EXIT STATUS section. Use Ex. 2017-07-04 06:59:34 +00:00
hesinfo
hexdump introduce some common variables for use in GCC warning disables: 2019-10-13 07:28:04 +00:00
iconv Switch the iconv(3) prototype to the POSIX conformant variation 2019-10-24 18:17:14 +00:00
id Add EXIT STATUS section. Use Ex. 2017-07-04 07:01:07 +00:00
indent Avoid common symbol declarations 2020-04-23 00:17:34 +00:00
infocmp infocmp: don't crash when a terminfo description does not have an alias 2020-03-31 12:44:15 +00:00
innetgr
ipcrm
ipcs
join Add EXIT STATUS section. Use Ex. 2017-07-04 07:01:07 +00:00
jot Document the default values for options in a way that hopefully makes 2020-04-25 11:11:33 +00:00
kdump futexput: cast the mask to u_long (as the op already is) 2020-04-30 15:12:25 +00:00
klist
ktrace Add the ability to: 2020-04-02 17:41:33 +00:00
ktruss Catch up in ktruss(1) with ptrace descriptive operation names 2020-01-14 11:28:35 +00:00
lam Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
last
lastcomm
ldd PR 54093: Align static TLS area to max_align_t. 2019-11-04 12:45:10 +00:00
leave
locale Fix spelling errors. 2020-04-28 22:29:32 +00:00
locate Little clean up: use getopts and don't use ``. Suggested by kre@. 2020-04-25 10:06:42 +00:00
lock
logger
login Avoid use-after-free bug in PAM environment 2020-02-08 13:44:35 +00:00
logname Add EXIT STATUS section. Use Ex. 2017-07-04 07:01:07 +00:00
look Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
lorder
m4 Use correct printf format for (struct input_file *)->lineno 2019-03-26 23:31:45 +00:00
machine
mail fix sun2 2019-12-17 19:12:50 +00:00
make usr.bin/make: fix typo in dollar test 2020-05-10 13:03:40 +00:00
man Exit successfully after printing the search path, stop further processing. 2020-04-06 19:53:22 +00:00
menuc Fix typo in ad clause. Ok perry@. 2019-12-03 01:45:34 +00:00
mesg mesg was in v1 2019-09-01 18:26:01 +00:00
midiplay make a fallthru comment GCC7 compatible. 2019-02-01 08:37:21 +00:00
midirecord Sort sections. Fix date. 2020-03-14 09:01:11 +00:00
mixerctl
mkcsmapper
mkdep deconst -> __UNCONST to avoid null pointer arithmetic 2018-05-23 21:20:20 +00:00
mkesdb
mkfifo Add EXIT STATUS section. Use Ex. 2017-07-04 07:01:07 +00:00
mklocale use strlcpy instead of strncpy. 2019-10-13 21:12:32 +00:00
mkstr Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
mktemp Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
mkubootimage arm64_image_header->image_size must be included size of arm64_image_header. 2020-02-08 13:27:00 +00:00
moduli use BN_is_prime_ex 2018-02-06 19:32:49 +00:00
msgc msg_table_add(): fix mishap in the format safety changes in r1.45 2019-11-16 17:38:09 +00:00
msgs introduce some common variables for use in GCC warning disables: 2019-10-13 07:28:04 +00:00
nbperf Fix typo 2017-06-20 15:50:04 +00:00
nbsvtool mark old compat functions. 2018-02-06 20:15:39 +00:00
nc Skip options which rely on crypto support in getopt() argument list, if we're 2019-10-03 01:15:19 +00:00
netgroup
netstat Avoid common symbol definitions. 2020-04-23 00:24:50 +00:00
newgrp Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
newsyslog convert HAVE_GCC == 7 to HAVE_GCC >= 7. 2019-09-29 23:44:58 +00:00
nfsstat
nice
nl
nohup
pagesize
passwd add LIBKRB5_LDADD/LIBKRB5_DPADD and their static counterparts 2018-02-25 00:16:48 +00:00
paste
patch Keep things portable (requested by joerg) by not depending on reallocarr 2018-06-18 18:33:31 +00:00
pathchk
pkill Sort SEE ALSO. 2018-12-04 08:01:35 +00:00
pmap - Don't copy the entire namecache only to look up a few names. Walk the 2020-03-22 14:41:32 +00:00
pr Document history 2019-09-01 18:31:37 +00:00
printenv
printf Amend the previous change: we can have (almost) the best of both 2019-07-22 17:34:31 +00:00
progress Whitespace nit. 2020-04-25 11:12:39 +00:00
pwait The proper way to validate a condition that's expected to be true is 2017-07-30 20:37:35 +00:00
pwhash adding argon2 support to libcrypt. argon2 user authentication now 2019-10-21 02:36:48 +00:00
qsubst
quota Use standard Dd format. Remove superfluous Pp 2020-01-21 07:57:49 +00:00
radioctl
rdist introduce some common variables for use in GCC warning disables: 2019-10-13 07:28:04 +00:00
realpath Port realpath(1) from FreeBSD 2020-02-02 21:49:43 +00:00
renice
rev
revoke
rfcomm_sppd fix offset/indent of list 2017-12-21 08:59:27 +00:00
rlogin PR/54435: Adjust for new kernel behavior of soreceive(9) clearing MSG_OOB 2020-05-03 16:32:16 +00:00
rpcgen introduce some common variables for use in GCC warning disables: 2019-10-13 07:28:04 +00:00
rpcinfo introduce some common variables for use in GCC warning disables: 2019-10-13 07:28:04 +00:00
rs - add or adjust /* FALLTHROUGH */ where appropriate 2019-02-03 03:19:25 +00:00
rsh Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
rump_allserver Fix sun2 2020-03-01 18:30:05 +00:00
rump_dhcpclient Remove more _KERNTYPES definitions in rump components. 2017-05-11 13:20:02 +00:00
rump_halt Remove more _KERNTYPES definitions in rump components. 2017-05-11 13:20:02 +00:00
rump_server Deal with fallout from the addition of 2019-06-01 06:59:17 +00:00
rump_wmd
rup introduce some common variables for use in GCC warning disables: 2019-10-13 07:28:04 +00:00
ruptime
rusers introduce some common variables for use in GCC warning disables: 2019-10-13 07:28:04 +00:00
rwall introduce some common variables for use in GCC warning disables: 2019-10-13 07:28:04 +00:00
rwho
script
sdiff Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
sdpquery Switch the iconv(3) prototype to the POSIX conformant variation 2019-10-24 18:17:14 +00:00
sed sed(1): Don't force a newline on last line, if input stream doesn't have one 2020-05-15 22:39:54 +00:00
seq - Default terminator to \n 2018-12-17 20:10:51 +00:00
shar Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
shlock
shmif_dumpbus improve error messages, minor cleanups. 2020-04-01 21:04:34 +00:00
showmount introduce some common variables for use in GCC warning disables: 2019-10-13 07:28:04 +00:00
shuffle
skey Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
skeyinfo
skeyinit
sockstat sockstat: Add indirection of symbols to remove clash with sanitizers 2019-08-18 04:13:24 +00:00
soelim
sort introduce some common variables for use in GCC warning disables: 2019-10-13 07:28:04 +00:00
sortinfo Free the buffer allocated by getline(3). 2017-04-30 13:45:06 +00:00
spell s/orignal/original/ 2019-12-27 10:20:01 +00:00
split
stat adjust fallthru comment. 2019-10-04 11:12:16 +00:00
su Remove superfluous Ns. 2019-09-01 19:12:16 +00:00
sys_info Also report versions of tcpdump, libpcap, and wpa_supplicant 2017-09-28 18:08:04 +00:00
systat increase slot slop space from 100 to 1000 before giving up. 2020-03-02 09:50:12 +00:00
tabs compare pointers with NULL not '\0'. 2019-02-01 08:29:03 +00:00
tail [tail] Fix type of 'len' 2018-03-06 03:33:26 +00:00
talk usr.bin/talk: Suppress -Werror=stringop-truncation error. 2020-02-08 12:53:29 +00:00
tcopy
tee Add EXIT STATUS section. Use Ex. 2017-07-04 07:01:07 +00:00
telnet introduce some common variables for use in GCC warning disables: 2019-10-13 07:28:04 +00:00
tftp user.bin/tftp: Suppress -Werror=format-overflow error. 2020-02-08 13:33:56 +00:00
tic terminfo: v3 records should create v3 aliases 2020-03-30 00:09:06 +00:00
time Add '-t' option for tcsh-style time output. 2020-04-23 07:54:53 +00:00
timeout
tip Avoid using common symbol definitions. 2020-04-23 00:35:14 +00:00
touch
tput
tr tr.1: add a "see also" xref to ctype(3) (to align with an inline 2019-05-29 11:27:34 +00:00
true
tset Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
tsort
tty Document history 2019-09-01 18:41:14 +00:00
ul - add or adjust /* FALLTHROUGH */ where appropriate 2019-02-03 03:19:25 +00:00
uname
unexpand Deduplicate some code I'd duplicated, shorten a couple of staircases, 2019-09-13 17:32:29 +00:00
unifdef introduce some common variables for use in GCC warning disables: 2019-10-13 07:28:04 +00:00
uniq remove unused label 2019-04-23 17:35:10 +00:00
units If we're having Thai units, make them correct. A tarangwah is a square wah, 2020-04-23 09:38:17 +00:00
unvis
unzip Explicitly link against libpthread and liblzma to make static linking 2019-07-28 12:44:36 +00:00
usbhidaction Add an optional '-p pidfile' parameter. 2018-05-15 01:41:29 +00:00
usbhidctl Purge an ancient email address, use dsainty@NetBSD.org instead 2019-09-22 07:28:35 +00:00
users
utoppya introduce some common variables for use in GCC warning disables: 2019-10-13 07:28:04 +00:00
uudecode
uuencode When input is not a multiple of three bytes in size, pad null 2019-03-04 05:37:08 +00:00
uuidgen
vacation Sort SEE ALSO. 2019-05-06 06:56:07 +00:00
vgrind s/expresion/expression/ in comment. 2019-12-27 09:32:09 +00:00
videoctl
vis
vmstat ncs_collisions is gone. 2020-03-23 18:44:17 +00:00
vndcompress Since vnconfig(8) was renamed (many years ago), update some cross-refs 2020-01-24 20:20:35 +00:00
w Document the source of load average figures. 2018-12-06 19:15:35 +00:00
wall introduce some common variables for use in GCC warning disables: 2019-10-13 07:28:04 +00:00
wc Document history 2019-09-01 18:44:06 +00:00
what Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
whatis
whereis
who use memcpy() for strings that are not C strings. 2019-10-05 23:35:57 +00:00
whois RIPE definition no longer exists in source 2020-03-01 02:45:04 +00:00
write write was in v1 2019-09-01 18:48:01 +00:00
xargs
xinstall
xlint use asprintf(). 2020-02-10 04:54:01 +00:00
xstr .Pp before .Bd is redundant. 2019-01-13 16:48:51 +00:00
yes
ypcat
ypmatch
ypwhich Remove spurious error(1) inserted compiler error message comments. 2017-08-11 20:32:34 +00:00
Makefile Port realpath(1) from FreeBSD 2020-02-02 21:49:43 +00:00
Makefile.inc