From nobody Wed Jul 24 23:10:53 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WTqWK6NZjz5RBC9 for ; Wed, 24 Jul 2024 23:10:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WTqWK2YHJz4vZ2 for ; Wed, 24 Jul 2024 23:10:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721862653; a=rsa-sha256; cv=none; b=agXxDNX/b7NZzFzFtyVFKifv5D+n9u+3QobTFj4Veos2ByOvS63b0CiJLJtBPmkCbS5ajE v4INE4R9hNfjoxo8blCB95XeqxwaKwFzSifGWZdNE4/nO4/q9kagmnaEs9NR7pCrGotUxA bZqiciAmQ5H0RYNzURPid69NPO0x9kS1qORS3QU8KdNXUqnk6FRqv3NaIxds/zB3hiKlp1 kwDZswM5x5xwtrY+RcjOjI1YbMoWTnZSZ6a7WR8wEGxMqwtIMzFHDq67OMLDpq4C9AeXrZ fakEbJOQd7VpQzZAa7PRQ7b7S0CVb0FTYmRIf6Suh5jyL7mnR6WG4NLqZu6yIw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721862653; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+dcTPfM0v9tE+u18xHZcmDebsfSLltu/uLY36yzipSU=; b=T2q5CQz8jDaiSi1hHI3Rh4d5Y3DG5VdrxVl/zXOQdwwV7yjjFUUHQaKXBDFv9JuUxLzQWp 3JY3ivUrwVMCiBLItjh5Q/Mqdx9hpakuPe9bVS3rBM+DCX8nVL2i8NBz0PzB4x1PLto3wH WzY3t/FYIH394Kadj+hVA6Et9OK3zzKPBmgWgcZkvYtensNlC7l40xPwykB9GicZecjZ+2 Awyd5amkhNmshkQs2ifG6yZk582clktqvSMRhUy57lcA5LXSYEjoAAnqnJ3qzD2FdjuVon NCVyx3UKtIzSUPLzkxicqYOmr0/LxaoeOeQ1yTxgHuWPvsdrWK1bRHUT6EWMIg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WTqWK273gzWv2 for ; Wed, 24 Jul 2024 23:10:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 46ONArZl058697 for ; Wed, 24 Jul 2024 23:10:53 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 46ONArMV058696 for bugs@FreeBSD.org; Wed, 24 Jul 2024 23:10:53 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 280434] diff(1) man-page (and no-param help) documents --ignore-all-blanks but option is named --ignore-all-space Date: Wed, 24 Jul 2024 23:10:53 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Documentation X-Bugzilla-Component: Manual Pages X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: freebsd@tim.thechases.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280434 Bug ID: 280434 Summary: diff(1) man-page (and no-param help) documents --ignore-all-blanks but option is named --ignore-all-space Product: Documentation Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Manual Pages Assignee: bugs@FreeBSD.org Reporter: freebsd@tim.thechases.com CC: doc@FreeBSD.org The man page documents an "--ignore-all-blanks" flag $ man diff | ul -t dumb | grep -e '-w.*ignore' -w --ignore-all-blanks as does the help $ diff 2>&1 | grep 'ignore-all' diff [-aBbditwW] [--expand-tabs] [--ignore-all-blanks] however there is no --ignore-all-blanks option. According to the source (usr.bin/diff/diff.c:107) there's an --ignore-all-space option which is the synonym for the -w option (like what the man-page describes). So the man-page conflicts with the source code (which is also conflicts with itself) $ grep ignore-all /usr/src/usr.bin/diff/diff.c { "ignore-all-space", no_argument, 0, 'w'= }, " diff [-aBbditwW] [--expand-tabs] [--ignore-all-blanks]\= n" FWIW, GNU diff(1) uses --ignore-all-space not --ignore-all-blanks if you're looking for a nudge favoring one vs the other. --=20 You are receiving this mail because: You are the assignee for the bug.=