From nobody Mon Jan 12 15:02:41 2026 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 4dqbG93mHXz6NhDF 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 4dqbG91bngz3csj 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=Dwbn+DXl2chn0ExLYTIVdEEmWw9tz+4lT407k+NBexE=; b=t4AOchSyTz5oWRaQ2KPC0E0KTE/yg2b24Yx+u/0f6to452HujkiBLBrRkrVaE+6sB1x/0u 7YNMH6RKsW12qo2RFuWvnp1qwWAWGoXxVT8Pp0al4qd/QukC93bjNkrly+ojiuMqwIBQQd rguFeeEWGmPPSU1uYuwue4q1XzJnzxc/pDan3iW0fbN5TOLPSn5rAGQ2pimmeTEY/INCTA l6axlMjD2k/lhoBp+bG+KKr1fuBaczms+4z+R6OgAQCdlW0GIeUMfZ06/c3qGH++Z/yMUb YezG3q11HdYMqaNtF+sxxDXLr8ojNNN8HKxZaXEadFXW3PIcUJjTUTyqnLElMw== 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=Dwbn+DXl2chn0ExLYTIVdEEmWw9tz+4lT407k+NBexE=; b=v4k69iLdH7Q/vlFujqCYTSm59bkxvoeybwdbTgVzzzOgJ5I4o4p+iD7bxVO5YdyQVlL1SY sjcZXUB/b8IktzSILmDhKdSp3clbx32l5x+mTO2ORJvl+mNh0lM6OVmgtwomT1DyiXhUWV hCgcIdqpsfNlYjbGnqzxDwWGaj/a2Z5qQ+yWRtygh2YZbn6kCTT3N6n02Vs9CaLRLbZcg1 N4CFdrVN6EumuJdQ0X15TeLVZSm2qy+J1xbij1VKf7t3N/IEM0OC8ub5tQacnqogXI7deA syFx5HeNEI4QHPHpKEbiOaK0SbXPgYzRr4eVjFA61+ZAIJ0ezbn7J87A+JCyXg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1768230161; a=rsa-sha256; cv=none; b=qJESRfNExxLzYXwQZeXStU+0YpfewbN96hDhwD5qlvs6ZGWFx+Qk08G5dzmhRrQ0SICKDx vLHuYb224AmVIQcLxYxQAEaPvgtv+ElNfgbUai+H2QjriT0X6ZDQIdF4NBuWTh61Paj3rA Fap1KXRKYSdbR78FmYXRtJvevejpie+IMJ5+s3rYyT8oNve3KJpYde+l4yzaQK3odZbSPy oz4UqOVms6CLZWZvxqsLmAY0DYF68HKyMpoNA+nPxTdEUrOdMbu3HWevKSqTH9SB7baNG1 RrP/vV6ANA64vKFoAXBhXqjCTSEBeRCR6oOoI+YbkVVDcF4wDYH5ILkQegz2oA== 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 4dqbG91BSbzXTY 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 60CF2fpu094784 for ; Mon, 12 Jan 2026 15:02:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 60CF2fvU094783 for bugs@FreeBSD.org; Mon, 12 Jan 2026 15:02:41 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 292408] synopsis of wc command Date: Mon, 12 Jan 2026 15:02:41 +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 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: 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=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 the assignee for the bug.=