Date: Fri, 29 Jan 2016 01:54:32 +0000 (UTC) From: Marius Strobl <marius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r295032 - head/etc/periodic/security Message-ID: <201601290154.u0T1sW3U004834@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: marius Date: Fri Jan 29 01:54:32 2016 New Revision: 295032 URL: https://svnweb.freebsd.org/changeset/base/295032 Log: Use '^[>+][^+]' instead of '^[>+]' with grep(1) when filtering the diff(1) output between two files in "new_only"-mode. Otherwise, with the default of using unified format a remnant of the header in the output is the result. This is especially irritating when the two files differ but the second one is empty, amounting to the vestige of the header being the only readout. Reported by: Stefan Haemmerl MFC after: 3 days Modified: head/etc/periodic/security/security.functions Modified: head/etc/periodic/security/security.functions ============================================================================== --- head/etc/periodic/security/security.functions Fri Jan 29 01:22:12 2016 (r295031) +++ head/etc/periodic/security/security.functions Fri Jan 29 01:54:32 2016 (r295032) @@ -51,7 +51,7 @@ check_diff() { rc=0 if [ "$1" = "new_only" ]; then shift - filter="grep '^[>+]'" + filter="grep '^[>+][^+]'" else filter="cat" fi
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601290154.u0T1sW3U004834>