Date: Tue, 30 May 2017 16:55:26 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 200553] uniq does not support -c with -u -d Message-ID: <bug-200553-8-ioFxIX6Qe9@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-200553-8@https.bugs.freebsd.org/bugzilla/> References: <bug-200553-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D200553 --- Comment #2 from commit-hook@freebsd.org --- A commit references this bug: Author: emaste Date: Tue May 30 16:55:16 UTC 2017 New revision: 319226 URL: https://svnweb.freebsd.org/changeset/base/319226 Log: 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> Changes: _U stable/11/ stable/11/usr.bin/uniq/uniq.1 stable/11/usr.bin/uniq/uniq.c --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-200553-8-ioFxIX6Qe9>