freebsd-nq/usr.bin
Ian Lepore d937171727 Support --all-repeats in uniq(1) for compatibility with gnu coreutils.
This adds a new -D/--all-repeats option to uniq(1), which outputs each copy
of any repeated lines (as opposed to a single copy of a repeated line). You
can specify a separator option to output a blank line before or after each
group of repeated lines. This adds compatibility with the GNU coreutils
version of uniq(1).

This change also re-groups the -c, -d, -D, -u options in the usage display
and man page to indicate that they are mutally exclusive of each other. This
matches the posix/opengroup definition of uniq(1) command line args. Note
that this change does NOT actually enforce the mutual exclusion in the code,
for now, it simply documents that the arguments should be considered
exclusive with each other.

Differential Revision:	https://reviews.freebsd.org/D22262
2019-12-15 18:05:18 +00:00
..
addr2line
alias
apply apply(1): Fix magic number substitution with magic character ' ' 2018-08-08 21:21:28 +00:00
ar ar: use more correct size_t type for loop index 2019-09-01 16:51:25 +00:00
asa various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
at - Correct the description when jobs are executed related to load avg 2018-08-11 16:29:54 +00:00
atm
awk Fix .depend files to work for build tools. 2019-06-15 17:08:13 +00:00
banner
basename Convert cap_enter() < 0 && errno != ENOSYS to caph_enter() < 0. 2018-06-19 23:43:14 +00:00
bc Sync with OpenBSD. 2019-01-12 12:35:02 +00:00
biff
bluetooth pkgbase: Add a FreeBSD-bluetooth package 2019-07-19 15:10:03 +00:00
bmake Merge bmake-20181221 2018-12-23 01:05:52 +00:00
brandelf Update Makefile.depend files 2019-12-11 17:37:53 +00:00
bsdcat MFV r348971,r348977: 2019-06-12 13:34:12 +00:00
bsdiff bspatch: add integer overflow checks 2019-09-26 13:27:25 +00:00
bzip2 Install all bzip2.1 MLINKs from the same place. 2019-08-28 21:01:51 +00:00
bzip2recover Install all bzip2.1 MLINKs from the same place. 2019-08-28 21:01:51 +00:00
c89 various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
c99 various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
caesar
calendar Correct date and time of George Harrison's death. 2019-11-29 23:04:45 +00:00
cap_mkdb
chat
chkey Update Makefile.depend files 2019-12-11 17:37:53 +00:00
chpass Update Makefile.depend files 2019-12-11 17:37:53 +00:00
cksum
clang Ensure lld respects the WITH/WITHOUT_SHARED_TOOLCHAIN option 2019-10-16 17:11:18 +00:00
cmp Drop "All rights reserved" from the files I own 2019-03-11 22:23:56 +00:00
col Convert cap_enter() < 0 && errno != ENOSYS to caph_enter() < 0. 2018-06-19 23:43:14 +00:00
colrm
column Free data after we're done with it. 2017-12-28 05:33:44 +00:00
comm
compile_et
compress Fix descriptor/memory leak in compress(1) code 2019-01-18 00:26:25 +00:00
cpio There is no SMALLER define anymore here 2019-07-12 05:19:06 +00:00
cpuset Fix an off-by-one bug in the CPU and domain ID parser. 2019-09-01 21:20:31 +00:00
csplit various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
ctags
ctlstat Flush stdout after each iteration. 2019-03-06 15:19:04 +00:00
cut cut: Fix out of boundary write on illegal list argument 2018-05-23 09:16:20 +00:00
cxxfilt
dc Adjust history, info source from v1's manuals 2019-09-04 13:44:46 +00:00
diff capsicum: use a new capsicum helpers in tools 2018-11-04 19:24:49 +00:00
diff3 capsicum: use a new capsicum helpers in tools 2018-11-04 19:24:49 +00:00
dirname Convert cap_enter() < 0 && errno != ENOSYS to caph_enter() < 0. 2018-06-19 23:43:14 +00:00
dpv pkgbase: Add a FreeBSD-dpv package 2019-07-19 15:10:53 +00:00
drill
dtc dtc: Allow multiple dts-v1 tag 2019-10-26 17:10:27 +00:00
du pkgbase: Put a lot of binaries and lib in FreeBSD-runtime 2019-09-05 14:13:08 +00:00
ee
elf2aout various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
elfdump elfdump: use designated array initialization for note types 2019-01-31 16:49:06 +00:00
enigma enigma(1) Remove reference to PGP; modernize a bit 2018-05-09 07:46:57 +00:00
env Add -0 option to ENV(1) 2019-11-07 17:14:59 +00:00
etdump Update release version of FreeBSD. 2018-04-25 18:56:27 +00:00
expand [expand] add __dead2 annotation to usage 2018-05-11 06:55:02 +00:00
factor Update Makefile.depend files 2019-12-11 17:37:53 +00:00
false
fetch Through a combination of insufficient variable initialization and 2018-09-10 19:39:20 +00:00
file
file2c
find Fix whiteout support in find(1) 2019-01-28 02:00:39 +00:00
finger various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
fmt fmt(1): Fix usage of Nm macro 2017-12-01 21:44:23 +00:00
fold Add basic tests for ctfconvert(1), fold(1) and rs(1) 2017-11-27 20:01:58 +00:00
fortune A few corrections and clarifications to r343406. 2019-01-28 19:54:58 +00:00
from
fstat Grammar fix. 2019-10-28 21:48:20 +00:00
fsync pkgbase: Put a lot of binaries and lib in FreeBSD-runtime 2019-09-05 14:13:08 +00:00
ftp
gcore gcore: Avoid using vm_map_entry_t. 2019-12-07 20:01:55 +00:00
gencat SPDX: Fix some cases wrongly attributed to MIT. 2017-11-30 15:10:11 +00:00
getaddrinfo
getconf Update the spelling of my name 2019-04-22 17:52:46 +00:00
getent various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
getopt Convert cap_enter() < 0 && errno != ENOSYS to caph_enter() < 0. 2018-06-19 23:43:14 +00:00
gprof gprof: disable building of a.out components 2019-08-21 10:54:52 +00:00
grdc Remove remnant from the pre LIBADD era 2019-09-13 14:51:00 +00:00
grep Update Makefile.depend files 2019-12-11 17:37:53 +00:00
gzip Update Makefile.depend files 2019-12-11 17:37:53 +00:00
head Update Makefile.depend files 2019-12-11 17:37:53 +00:00
hesinfo
hexdump hexdump(1): Exit gracefully on format strings missing conversion 2019-04-13 16:51:48 +00:00
host
iconv Convert cap_enter() < 0 && errno != ENOSYS to caph_enter() < 0. 2018-06-19 23:43:14 +00:00
id
ident Convert cap_enter() < 0 && errno != ENOSYS to caph_enter() < 0. 2018-06-19 23:43:14 +00:00
indent - address missing whitespace for indent 2019-08-29 23:23:12 +00:00
ipcrm Fix build post r330299 2018-03-02 23:31:55 +00:00
ipcs ipcs(1): drop obsolete error checking 2019-02-07 14:29:45 +00:00
iscsictl iscsictl.8: Add missing flag parameters 2018-12-27 14:44:01 +00:00
join
jot jot.1: Explain default argument values more precisely 2019-09-21 15:01:11 +00:00
kdump Update Makefile.depend files 2019-12-11 17:37:53 +00:00
keylogin
keylogout
killall Revert r352953: Convert pnmatch to single element array in regexec calls 2019-10-02 16:08:01 +00:00
ktrace Make it clear what the userland traces are in the ktrace(1) man page. 2019-08-26 10:18:19 +00:00
ktrdump capsicum: use a new capsicum helpers in tools 2018-11-04 19:24:49 +00:00
lam The lam(1) man page is unclear about the uppercase versions of the flags 2019-01-04 02:48:43 +00:00
last last(1): fix style after r351459 2019-08-25 01:05:01 +00:00
lastcomm various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
ldd Add an IMPLEMENTATION NOTES section to ldd.1. 2018-10-23 13:49:53 +00:00
ldd32 libcompat: Correct rtld MLINKS 2019-11-12 22:31:59 +00:00
leave
less MFV r349535: less v551. 2019-06-29 18:41:40 +00:00
lessecho
lesskey
lex Update Makefile.depend files 2019-12-11 17:37:53 +00:00
limits limits(1): fix always true condition 2018-01-21 08:48:26 +00:00
locale locale: initialize variables to make gcc happy 2019-09-11 16:00:03 +00:00
localedef localedef: define characters in "space" class also as "print", except 2018-10-27 23:31:42 +00:00
locate Move install of locate.rc to usr.bin/locate/locate/ 2018-09-18 20:50:07 +00:00
lock Make lock(1) use PAM. This makes the -p option work again. (Well, kind of, 2018-02-11 13:35:31 +00:00
lockf lockf(1): return EX_UNAVAILABLE if -n is used and the lock file does not 2019-03-20 07:40:38 +00:00
logger logger: fix memory leak and use-after-free 2018-05-28 02:40:06 +00:00
login Update Makefile.depend files 2019-12-11 17:37:53 +00:00
logins various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
logname Convert cap_enter() < 0 && errno != ENOSYS to caph_enter() < 0. 2018-06-19 23:43:14 +00:00
look
lorder
lsvfs
lzmainfo
m4 m4: import from OpenBSD 2019-09-09 15:37:40 +00:00
mail Move mail.rc install to usr.bin/mail. 2018-09-18 20:47:06 +00:00
man Teach man(1) about C.UTF-8. 2018-11-04 16:58:55 +00:00
mandoc Suppress old gcc warning about null format string 2019-04-12 18:35:14 +00:00
mesg
minigzip Move contrib/zlib to sys/contrib/zlib so that we can use it in kernel. 2019-05-08 08:43:15 +00:00
ministat Improve the way we calculate variance to reduce the rounding errors 2019-10-18 07:55:01 +00:00
mkcsmapper various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
mkcsmapper_static
mkdep
mkesdb various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
mkesdb_static
mkfifo
mkimg Don't compress and uuencode the "hexdump -C" output files. Just 2019-03-09 02:03:07 +00:00
mkstr
mktemp various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
mkuzip geom_uzip(4), mkuzip(8): Add Zstd image mode 2019-08-13 23:32:56 +00:00
morse morse(6): update documentation 2018-01-06 15:52:28 +00:00
msgs Switch the default pager for most commands to less 2018-08-08 19:24:20 +00:00
mt Add IBM TS1160 density codes to libmt and the mt(1) man page. 2019-03-04 14:30:37 +00:00
nc Add -M option to nc(1), which makes it print the TCP connection 2019-12-14 10:53:52 +00:00
ncal Do not reference deskutils/cal from cal.1. 2019-03-07 11:09:25 +00:00
netstat Update Makefile.depend files 2019-12-11 17:37:53 +00:00
newgrp various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
newkey newkey(8): fix 'tmpname' memory leak (always) and input file descriptor leak 2019-02-08 14:31:44 +00:00
nfsstat Fix printing of Server Re-Failed and Server Faults. 2019-07-28 21:44:01 +00:00
nice
nl various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
nm Update Makefile.depend files 2019-12-11 17:37:53 +00:00
nohup Cross-reference nohup(1) and daemon(8). 2018-11-09 13:47:06 +00:00
number
objcopy remove doubled name in objcopy manpage 2018-09-11 20:32:57 +00:00
ofed Move mostly useless examples binaries from OFED, as well as the Subnet 2018-07-20 23:52:11 +00:00
opieinfo
opiekey
opiepasswd
pagesize
pamtest
passwd pkgbase: Put a lot of binaries and lib in FreeBSD-runtime 2019-09-05 14:13:08 +00:00
paste
patch patch(1): give /dev/null patches special treatment 2019-11-04 03:07:01 +00:00
pathchk various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
perror various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
pom pom: Fix fencepost bugs. 2018-11-20 00:06:53 +00:00
posixshmcontrol Minor tweaks to the layout. 2019-05-30 16:02:40 +00:00
pr Drop "All rights reserved" from the files I own 2019-03-11 22:23:56 +00:00
primes Remove unneeded assert.h (there is no assertion in this file). 2019-01-06 20:42:09 +00:00
printenv Convert cap_enter() < 0 && errno != ENOSYS to caph_enter() < 0. 2018-06-19 23:43:14 +00:00
printf printf(1): Note that \c only works in %b strings 2019-07-29 20:43:07 +00:00
proccontrol Add stackgap control mode to proccontrol(1). 2019-09-03 18:58:48 +00:00
procstat Remove IS_INADDR_ANY(). 2019-10-19 19:38:53 +00:00
protect various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
quota Add a workaround for servers which respond RPC_PROGNOTREGISTERED 2019-09-21 00:17:40 +00:00
random random(6): produce random results 2019-12-13 04:37:39 +00:00
rctl rctl: fix sysctl kern.racct.enable use after r341182 2019-04-03 20:37:14 +00:00
readelf Update Makefile.depend files 2019-12-11 17:37:53 +00:00
renice
resizewin
rev
revoke various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
rpcgen rpcgen: make compiler arglist allocation dynamic 2019-10-15 16:05:17 +00:00
rpcinfo
rs Add basic tests for ctfconvert(1), fold(1) and rs(1) 2017-11-27 20:01:58 +00:00
rup rup: Fix -Wcast-align warnings 2018-07-03 19:09:46 +00:00
ruptime Fix indentation in ruptime command output for hosts in the "down" state. 2019-01-12 12:57:32 +00:00
rusers rusers: modernize a bit 2018-06-25 11:44:56 +00:00
rwall
rwho capsicum: use a new capsicum helpers in tools 2018-11-04 19:24:49 +00:00
script
sdiff sdiff(1) can now be built defaults warning level 2017-12-06 20:10:05 +00:00
sdiotool SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
sed sed: process \r, \n, and \t 2019-12-10 19:16:00 +00:00
seq seq(1): Require user-provided format strings to contain a conversion 2019-03-07 18:24:16 +00:00
setchannel various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
shar Shar files may be seen as binary by grep. 2019-01-31 23:21:18 +00:00
showmount [showmount] implement long options 2019-12-12 05:11:53 +00:00
size Update Makefile.depend files 2019-12-11 17:37:53 +00:00
smbutil
sockstat Make struct xinpcb and friends word-size independent. 2018-07-05 13:13:48 +00:00
soelim
sort Update Makefile.depend files 2019-12-11 17:37:53 +00:00
split Revert r352953: Convert pnmatch to single element array in regexec calls 2019-10-02 16:08:01 +00:00
ssh-copy-id my copyright: some minor adjustments 2018-05-19 20:35:15 +00:00
stat Unbreak the tests after r347002. 2019-05-01 19:35:45 +00:00
stdbuf various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
strings Update Makefile.depend files 2019-12-11 17:37:53 +00:00
su Update Makefile.depend files 2019-12-11 17:37:53 +00:00
svn svn: support building with WITH_PIE 2019-02-21 15:08:25 +00:00
systat Add stat counter for ipv6 atomic fragments 2019-04-19 17:06:43 +00:00
tabs various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
tail Update Makefile.depend files 2019-12-11 17:37:53 +00:00
talk Use a private definition of osockaddr rather then relying on type 2019-01-18 21:30:06 +00:00
tar pkgbase: Put a lot of binaries and lib in FreeBSD-runtime 2019-09-05 14:13:08 +00:00
tcopy Free inb on error return. 2017-12-28 05:33:39 +00:00
tee capsicum: use a new capsicum helpers in tools 2018-11-04 19:24:49 +00:00
telnet Update Makefile.depend files 2019-12-11 17:37:53 +00:00
tests
tftp tftp: fix two minor Coverity CIDs 2019-10-03 20:22:25 +00:00
time time(1): use the monotonic clock 2018-05-04 14:39:32 +00:00
timeout timeout.1: Try to improve clarity 2018-03-29 02:13:58 +00:00
tip tip/cu: check for EOF on input on the local side 2019-11-11 17:41:52 +00:00
top Add a "B" suffix to memory quantities in top(1) output. 2019-11-18 20:55:01 +00:00
touch touch.1: Update to conform to POSIX 2004 2018-06-01 22:34:59 +00:00
tput
tr Convert cap_enter() < 0 && errno != ENOSYS to caph_enter() < 0. 2018-06-19 23:43:14 +00:00
true
truncate truncate: delintify 2018-07-29 07:51:42 +00:00
truss truss: centralize pointer-constructing casts. 2019-10-31 22:29:13 +00:00
tset
tsort
tty
ul
uname pkgbase: Put a lot of binaries and lib in FreeBSD-runtime 2019-09-05 14:13:08 +00:00
unexpand
unifdef Re-apply fixed r354847 2019-11-20 19:43:34 +00:00
uniq Support --all-repeats in uniq(1) for compatibility with gnu coreutils. 2019-12-15 18:05:18 +00:00
units Correct a typo: was -> way. 2019-01-21 15:27:58 +00:00
unvis
unzip various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
usbhidaction various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
usbhidctl Include item position in report descriptor dump in usbhidctl(1). 2019-08-17 08:29:22 +00:00
users users(1): Use capsicum helpers for users 2018-06-25 11:44:41 +00:00
uudecode
uuencode Make outfile constant. 2018-11-12 07:14:34 +00:00
vacation
vgrind Simplify using bsd.endian.mk and have it provide CAP_MKDB_ENDIAN, since it is 2018-06-28 13:48:59 +00:00
vi Remove RELEASE_CRUNCH here 2019-07-19 20:04:31 +00:00
vis
vmstat Humanize more columns in the vmstat(8) output and adjust widths. 2019-11-08 11:09:50 +00:00
vtfontcvt vtfontcvt: simplify rshift_row 2019-08-23 16:03:23 +00:00
w Fix address annotation in xml output from w 2019-08-29 02:44:18 +00:00
wall Add RFC 5424 syslog message output to syslogd. 2018-04-15 08:34:16 +00:00
wc Update Makefile.depend files 2019-12-11 17:37:53 +00:00
what pkgbase: Put a lot of binaries and lib in FreeBSD-runtime 2019-09-05 14:13:08 +00:00
whereis Silence Clang Scan warnings regarding the use of strcp(). 2019-01-24 18:39:45 +00:00
which various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
who various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
whois Update RFC references in the whois(1) man page. 2019-08-08 21:15:02 +00:00
write Remove extraneous setutxent() calls in write(1). 2019-01-23 20:02:17 +00:00
xargs userland: Fix several typos and minor errors 2017-12-27 03:23:01 +00:00
xinstall Allow boostrapping xinstall on Linux 2019-11-20 17:24:49 +00:00
xo
xohtml Import libxo-1.3.1: 2019-11-07 18:06:44 +00:00
xolint
xopo
xstr
xz
xzdec
yacc
yes Convert cap_enter() < 0 && errno != ENOSYS to caph_enter() < 0. 2018-06-19 23:43:14 +00:00
ypcat various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
ypmatch various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
ypwhich various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
zstd Update to Zstandard 1.4.0 2019-04-19 02:54:13 +00:00
Makefile libcompat: build 32-bit rtld and ldd as part of "everything" 2019-11-07 22:58:10 +00:00
Makefile.amd64
Makefile.arm
Makefile.i386
Makefile.inc
Makefile.powerpc
Makefile.sparc64