From nobody Mon Jan 12 15:02:41 2026 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 4dqbG91XMhz6NhsQ for ; Mon, 12 Jan 2026 15:02:41 +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 "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dqbG90s1Tz3cxG for ; Mon, 12 Jan 2026 15:02:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1768230161; 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=+jrJAmAWqeLjiVuLSxEp06z+Fgukaumflt8vruE9ED8=; b=fPhOJKy6uTH8DwsMe1nsKKxH4g6YytG80SgapUzXOs8nASij2Qb4rgK0h5/gf4DbtrmQe+ HRxI6pcWDkaiKugerNIKtbuJx3cY1bCxTR3THR1bkZ0VTS+B0QWcxGQWNmIv9bsZZQgL32 tkPiyAAPCnU893uJRhdE5GxpZp29m18Dbq7rUxuv5AsW5U1mJSCT+1LvkNJyPsPZiRaFS2 5ourclessOpwiGLpFT0pZQMYm+DDrx8QbS5d4duvifsOW9KOlTEE3hWBFQ2pyf0IVFYQAX Hu0kNiPw3JcKMPpUhFmD5EECazzaqZuFhE45dsey7PQRR/WxqtYHII+qhXJEgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1768230161; 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=+jrJAmAWqeLjiVuLSxEp06z+Fgukaumflt8vruE9ED8=; b=ybnuzgaUbP8AwpZwCk3w9R+UXCzwMsj4uuo1kZ4e2D5v3hnLhWn1p+hGeMw6e4g6/F0BR3 5Mv9cG/8f1RAafito0HyqlWB4MMz8I0nAGQOo6MTLAsr6gyfYmXmO9simMOMCQyBaGiqoO m2/KFa95ORPWekAnFakE6To4CkRIEC5s/ssPPtAglkkRf3SHQ9tZNinlxA7EOyEMLOOlBP swvwMdaNMKH35ooBgOZJJvhBKeeLu0wa2PfHEd0xjsOKQ1dAMP7gbzCNisc/9+XN/I2Wt9 2AB2neETZVeeIQoKvoh46tg7KuFiXJCBIx8I4buOASDnq0jW3SrDDaZxIRs3cw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1768230161; a=rsa-sha256; cv=none; b=ltI8wyh8BdRn5EY5SiQB9LdlDB86zT2dEdwXVEbObY0cz+5aJFiV4GrIqCIkDc7szicHfR hr84WIxkPt9UVqMm2yNqXS2mx85s4ZYsXVk7EZOEYSCx3AlQi5oavfVsPczc0g8k4oyu00 b4PziL4JA/qs2FQMHzqri6akNUEw7x/j9ZL6T7UPoEd2zQE2uiPW7LuOkKCWuwWsLgjVxl vWfgetaxG+d6imn/E7q6E2cE3u5kKQNkSE7YprUbYZex70M9LoR4ooQ+LWXjxlqfhmbJf3 YZWK4J3EQQKV5fUF/uJogJavJhYCxyw+2+kzvYTW3N6b6SiecwQI7BPQoV8ymQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4dqbG90CKFzXG3 for ; Mon, 12 Jan 2026 15:02:41 +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 60CF2eG2094780 for ; Mon, 12 Jan 2026 15:02:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 60CF2eb8094779 for doc@FreeBSD.org; Mon, 12 Jan 2026 15:02:40 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 292408] synopsis of wc command Date: Mon, 12 Jan 2026 15:02:41 +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 Many People X-Bugzilla-Who: sebastian.2013@ritter.biz 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-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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=3D292408 Bug ID: 292408 Summary: synopsis of wc command Product: Documentation Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Manual Pages Assignee: bugs@FreeBSD.org Reporter: sebastian.2013@ritter.biz CC: doc@FreeBSD.org (so less priority as available) The synopsis of wc command is not correct, because c and m flag are not together usable. Manual file part... SYNOPSIS wc [--libxo] [-Lclmw] [file ...] ... -c ... This will cancel out any prior usage of the -m option. ... -m ... This will cancel out any prior usage of the -c option. This is different to GNU implementation, because GNU wc supports both flags together. But the problem is only the not clarify SYNOPSIS or the implementation allow both together Source code part /usr/bin/wc/wc.c lines 104 / 111: while ((ch =3D getopt(argc, argv, "clmwL")) !=3D -1) switch((char)ch) { case 'l': doline =3D true; break; case 'w': doword =3D true; break; case 'c': dochar =3D true; domulti =3D false; break; case 'L': dolongline =3D true; break; case 'm': domulti =3D true; dochar =3D false; break; case '?': default: usage(); } --=20 You are receiving this mail because: You are on the CC list for the bug.=