CVS commit: src/usr.bin/uniq
Module Name:src Committed By: christos Date: Tue Apr 23 17:35:11 UTC 2019 Modified Files: src/usr.bin/uniq: uniq.c Log Message: remove unused label To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/usr.bin/uniq/uniq.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.bin/uniq
Module Name:src Committed By: uwe Date: Tue Apr 23 14:40:12 UTC 2019 Modified Files: src/usr.bin/uniq: uniq.c Log Message: Don't pass '-' to getopt(3). My guess is that *very* old getopt didn't handle "--" terminator, so this code was working around it and not quite correctly at that. Fixes weird output from $ uniq --long-option uniq: uniq: No such file or directory (for more fun, run that command from /usr/bin as root). Pointed out by Andreas Krey. To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/usr.bin/uniq/uniq.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.bin/uniq
Module Name:src Committed By: abhinav Date: Sun Oct 16 06:17:52 UTC 2016 Modified Files: src/usr.bin/uniq: uniq.c Log Message: Fix the bug introduced in the previous commit. The lengths of the lines being compared were not correct. Essentially, we were comparing the length of the buffers instead of the length of the strings. This patch also avoids calling skip() twice for the same line. Thanks to Rin Okuyama for the patch. To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/usr.bin/uniq/uniq.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.bin/uniq
Module Name:src Committed By: abhinav Date: Fri Oct 14 19:43:59 UTC 2016 Modified Files: src/usr.bin/uniq: uniq.c Log Message: A small optimization: since we already know the length of the lines, check if the lenghts are equal before calling strcmp(3). Most of the times, the call to strcmp(3) can be saved if the lines are not of the same length. Thanks to Christos for the reviews To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/usr.bin/uniq/uniq.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.bin/uniq
Module Name:src Committed By: wiz Date: Sun Aug 26 14:14:16 UTC 2012 Modified Files: src/usr.bin/uniq: uniq.c Log Message: - synchronize `usage' message with man page. Patch from Bug Hunting. To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/usr.bin/uniq/uniq.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.bin/uniq
Module Name:src Committed By: wiz Date: Sun Aug 26 14:13:50 UTC 2012 Modified Files: src/usr.bin/uniq: uniq.1 Log Message: - improve punctuation; - improve wording (explicitly mention the name of the optional additional arguments within the text, using macros as well); - create separate section, and use `.Ex' macro, for exit status information; - bump date. Patch from Bug Hunting. To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/usr.bin/uniq/uniq.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.bin/uniq
Module Name:src Committed By: wiz Date: Wed Oct 6 07:59:18 UTC 2010 Modified Files: src/usr.bin/uniq: uniq.c Log Message: Sync usage with man page. To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/usr.bin/uniq/uniq.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.bin/uniq
Module Name:src Committed By: dholland Date: Wed Oct 6 06:43:26 UTC 2010 Modified Files: src/usr.bin/uniq: uniq.1 uniq.c Log Message: Allow -c with -d/-u. While uniq -cu isn't that useful, uniq -cd often is. No objection on tech-userlevel, and the arbitrary restriction has been irritating me for ages. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/usr.bin/uniq/uniq.1 cvs rdiff -u -r1.15 -r1.16 src/usr.bin/uniq/uniq.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.