summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/twalk.c
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2017-05-30 16:55:15 +0000
committeremaste <emaste@FreeBSD.org>2017-05-30 16:55:15 +0000
commit10ed84a470ca0a5f1388a5e944d614fd57c1ea25 (patch)
tree4baf5d7b069e7f34ce838cfe3d23d86618f410c5 /lib/libc/stdlib/twalk.c
parenta91af134655cb94d293a8d398490ac309734b4e8 (diff)
downloadFreeBSD-src-10ed84a470ca0a5f1388a5e944d614fd57c1ea25.zip
FreeBSD-src-10ed84a470ca0a5f1388a5e944d614fd57c1ea25.tar.gz
MFC r318316: uniq: allow -c to be used with -d or -u
Bring in some bits from NetBSD and lift the restriction in uniq(1) that -c cannot be used with the -d and -u options. This restriction seems unnecessary and is supported at least by GNU, OpenBSD, and NetBSD. Lift the restriction and simplify the show() logic a little bit to maintain functionality when -c is provided with -d/-u. Also with this change, -d and -u are now actually a mutually exclusive, albeit valid, combination. Given that they both indicate opposite behavior, uniq(1) will no longer output anything if both -d and -u are supplied. This is in line with NetBSD as well as GNU. Adjust the man page and usage() to reflect that -c is its own standalone option. PR: 200553 Submitted by: Kyle Evans <kevans91@ksu.edu>
Diffstat (limited to 'lib/libc/stdlib/twalk.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud