Date: Wed, 08 Jan 2020 11:47:09 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 242828] diff -rq still does full file comparison Message-ID: <bug-242828-227-hgobrRKHIx@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-242828-227@https.bugs.freebsd.org/bugzilla/> References: <bug-242828-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242828 --- Comment #2 from fehmi noyan isi <fnoyanisi@yahoo.com> --- I think adding one _if_ check to the case where the files differ would be sufficient; switch (files_differ(f1, f2, flags)) { case 0: goto closem; case 1: /* if brief output is needed, just return to the caller */ if (diff_format == D_BRIEF) { rval = D_DIFFER; goto closem; } break; default: /* error */ status |= 2; goto closem; } with this change, when -q or --brief is used, diff(1) will just print a message without doing any further work -- You are receiving this mail because: You are the assignee for the bug.help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-242828-227-hgobrRKHIx>
