From nobody Wed Jul 24 23:10:53 2024 X-Original-To: doc@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 4WTqWK2yZJz5RBFj 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 4WTqWK1tCLz4vT1 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=CkUxqwjs0eg71h4CSuc007RRfY2aS4OJhGlDKXBHYiwBBXY3NjRKBWfV1UBYQ2RccFmtde XxgkUI++IHQhtXPg/b5fdCgdm6pv/HsXivIKZQMBRPhAgZzuN88kOlKfnM8h+xxBrCSQxO f3AgApz+3YWTsSBAKUifVRjAftFXj7z1ccfAM8/rrT+lsxAMAs+BfrahK4I878Q7bCBJp1 Rh8UP2Yg5sd+uHekgooixYExRhxvF0MOsU2dt3XtizQ0ZOZQR1kFy9vKq4+6LqIaxq1h7V C0my8e6JRvt1PJp0szOxf6CcGBGsphVRfOGyFthL+fjmUm3EneF7jL/uSW+eZw== 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=RZgsZYA6y8pN54qtwc/pO3FHEuJvPWquz7SFQ/9qbKI=; b=m1X9oBuVL462HfjHMRGl0xkBXeUC1taPAEtK5fbhfErKDObqC6xFE3U8w9lJlud/+91Hqm jLgiC5wQrIC/KlESyoLwpt5PpGfyTCMnJ8UL1eV92YjJa7Uyk8IC7Xktn1p7LM4S/Iq6I+ R2sWQUzFqkUn5gvX44XDKLoKacDFuxneW+m3B/2o5fWUQXiEsDtha0zWAR3fs4zXZuzsLI hCSJb0c35lw7U2d+XheVDP79ua2OLHBgNonzNOM2SGDleJT+Xbw7ryoCy6Cg01zKo+K6LI 0Y1nAkgpWYRJVO4k6da9d22ErW4MEGyGipXSLatXZqJAg6k7Imq4scUSqiHYiw== 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 4WTqWK1QpqzW1w 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 46ONArIb058692 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 46ONArpt058691 for doc@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: doc@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: CC 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: Documentation project List-Archive: https://lists.freebsd.org/archives/freebsd-doc List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-doc@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 on the CC list for the bug.=