From nobody Sun Jan 19 15:39:58 2025 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 4Ybd2R1WmBz5lNcb for ; Sun, 19 Jan 2025 15:39:59 +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 4Ybd2R0lMtz3cgv for ; Sun, 19 Jan 2025 15:39:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737301199; 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=9GpY7q//XkufBVv9nKTxnWuNaH91UeRtBPiRJ7s+o9g=; b=kyNSVU+Zb2zatjmfddG5EV8WnA7YMZHq6mXLfwpA9faoJuy98IEHyYmOWpOvMYeMxf0/tO CPSIZrGntaggZoJKKnuK68FCA3voXhG2daCEFfNFElzvoDdvLqz1knByx95vPY9xBq2fKZ bbnd8ia2Fo5MQzeqsd57ze8xwU+2LPDF8FNKn83gU1F8I1drUwyGflHndnHEno5eqfttwu jXIwwARj9sjMaEOo6gGho61mSW61BJFLCdrPz0y66DBZwZ/C7Qc3fFzbs9QqjTucvTv1kg x1nbBFCPk+FKv5pR4CHJ1HRPlGyQrW6TbgGLKSACxrVGiEac+DlphFjuaxHljA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737301199; 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=9GpY7q//XkufBVv9nKTxnWuNaH91UeRtBPiRJ7s+o9g=; b=hFEePWEn0jCTfExbo9nj9bcja2rEsqTqVj1JmChgmkNijonF2wvxdavftSlTxP+uSJ6d9T pMC+6gpU8UFNSoGldPEfMAInx8TmYEIrzmTA8Y3r7B3vJ2w3uRNmdUpo0DPVqIwmcfL51G 93Ji/QwgjZLd4Sh5zvQ2yWRuaB8ExaSvhSNZOk9RbEKSBjMgQCSZQHMkhcFS5DDhH/9j+5 Gs4C3QX+h3qjX3h4QcH0UeQqbOUw974Dhf+TAZLjy+swCxD7Iz4KkYLRzGE/4U1vHEOVdL GckhxzRTKODT71itcQYTFhKvi7Kg6x+KRWAdUF5RE8kd/vqVSd8XwQgqLvMxqQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1737301199; a=rsa-sha256; cv=none; b=UftW/r0FkjmS5FvxWOtTkwYbzDIHWhdpSQnvnBm3LJg0JLa7e9+7IRjOfuE3/YCRePIYOk AZUOpjRm46NuY3G4BAfYFiMzJauJFnCuvfi/6etm0cBYKh9JEKh8yqs6nB4oVtjCQoQBvS /A1N5IA5/JFEr5sjl9FeOm6C9f0A6Tncg7Lm5/thYoUNlLuPokl4A6cDcbG/oZ3YAoSyVV hnweSpl99qvR0bHQKUd7f9+6Q6zpyLHCA+clmVdbxD8BJHbXVaKEM23WpQ+abDuDm3sQah AkhFprD+RTKrIJsSjqFCcQmnVMKDvalqE0G44ER6rFGdGITVC+NfgvTw4gXspQ== 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 4Ybd2Q7584zwWk for ; Sun, 19 Jan 2025 15:39:58 +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 50JFdwMc000118 for ; Sun, 19 Jan 2025 15:39:58 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 50JFdwnU000117 for doc@FreeBSD.org; Sun, 19 Jan 2025 15:39:58 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 284166] [patch] Mention that ls(1) colorized output doesn't support tabs. Date: Sun, 19 Jan 2025 15:39:58 +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: artembunichev@zohomail.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 attachments.created 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=3D284166 Bug ID: 284166 Summary: [patch] Mention that ls(1) colorized output doesn't support tabs. Product: Documentation Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Manual Pages Assignee: bugs@FreeBSD.org Reporter: artembunichev@zohomail.com CC: doc@FreeBSD.org Created attachment 256809 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D256809&action= =3Dedit Patch for ls(1) man page. Comments in bin/ls.c tell us that color sequences and tabs can not be used together: if (f_color) { /* * We can't put tabs and color sequences together: * column number will be incremented incorrectly * for "stty oxtabs" mode. */ f_notabs =3D 1; ... } This affects the ls(1) behaviour when it's set to use colorized output. As = can be traced throught the source code, in this case visual appearance of tab s= tops will be achieved by using whitespaces instead of tab characters (from print= .c, `printcol'): (void)putchar(f_notabs ? ' ' : '\t'); I suppose, it is worth to be mentioned in the manual page. An appropriate patch is sent. --=20 You are receiving this mail because: You are on the CC list for the bug.=