From nobody Thu May 7 20:19:17 2026 X-Original-To: dev-commits-src-branches@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 4gBNrP35vFz6d7fT for ; Thu, 07 May 2026 20:19:17 +0000 (UTC) (envelope-from git@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" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gBNrP0wKkz3HfM for ; Thu, 07 May 2026 20:19:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1778185157; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pj9nwGlLE3iktIlS/ozUyY9RL449XV//l3XIYoxyA9U=; b=E7S4uRWZ5pNxrbnf81nyQwVkNoPgUF0XBI97siZbjH2xcDVqvEnvZNeGVMaONm2iBQ1+2C O9TRF5Fw+FRkV7AeD+xjHMsFXkVeHnZ+lGUWiLt9+/6IjhNEBHj8K4+3YgPZsZr3FHD57P h8jzh1+e75T/WjOQo3BfWcwNb3VEJMh4c5RdREDve7EVAWwnkeJ2DBBMC/KH0WZRJlK4SS zledJWt1POEJ6OXJuwuM1C7RbNztRBptYTKxscJlTmEKLIsyKyWJsyv9mR5NhKgkrIvGF7 HeHoZCRHhxlT4KqGeepZ3ls9EngqQTyPSje9lb/nsw7as0YOgembdOKW4XUYSA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1778185157; a=rsa-sha256; cv=none; b=E6AHf0A0GkeIA+AWXFbmBKS/BZu/luvuAv8Msht6N5mUA3HvDzwYldyy1ptIRuA8IMhV5u qqkYoOLkSUZpOWrB5G2aPup5NNhZZOJvS5K7Q6qParWY1/dmCdFYakKbXzJIu8L8noHqAD na6hWDrPO2HpM0WKtNPVdjN37sDANn+pjHHLYyxDgOms6eOtS8bcGWSnDvZ+6LCssLVNt9 xaDzvJo4ZjqqmLcrRvQcaf01n/rWFA99M0a4tiBNbjlVPFVq/5YO3eiQuFiE22jTdMZ2yv b9LYnasyVDfobC3S98CwC4j6rPBhea07CiCk8xJBH5HiOK1I1L+8zSnVBattgQ== 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=1778185157; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pj9nwGlLE3iktIlS/ozUyY9RL449XV//l3XIYoxyA9U=; b=jprXlEweCg/HSyOBcO28ynIV33AAyaTNXWZSDtOIrNJPTjLqEIN1EnFTaffNzy+fIuRsqq wBFjMwgsgs0iBoRV6fYgF+LsuFGcX3F+SqigW8EP2VQV7vK1TTeegbkk3P1RTyxuMRI3iz 94Zsa2V4aPnaOqfxcJRqb4IOYNP/ivCYDENKFEdxAQcXS5QbFdGOj023HUvI82oDQjWSoN CABo65e9pddNgTOuLgRqTkuOhxSloSLgrzDufC6nr4TY2OS2nOr7b+oYcnKXtlLpCzi1MR PhhXhUi7g1g5M4PH4I1gsmoUwkUJ4i5MwfkwF0HXchLOuuhfbdE/nwKLEvIIig== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gBNrP0DNpzhx7 for ; Thu, 07 May 2026 20:19:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1f3fa by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 07 May 2026 20:19:17 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Dag-Erling=?utf-8?Q? Sm=C3=B8rg?=rav From: Colin Percival Subject: git: 1981ce9f03dc - releng/15.1 - vis.3: Try to better describe VIS_SAFE List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cperciva X-Git-Repository: src X-Git-Refname: refs/heads/releng/15.1 X-Git-Reftype: branch X-Git-Commit: 1981ce9f03dc6d92e4351b7a88e7df15f6d21fe1 Auto-Submitted: auto-generated Date: Thu, 07 May 2026 20:19:17 +0000 Message-Id: <69fcf3c5.1f3fa.61949859@gitrepo.freebsd.org> The branch releng/15.1 has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=1981ce9f03dc6d92e4351b7a88e7df15f6d21fe1 commit 1981ce9f03dc6d92e4351b7a88e7df15f6d21fe1 Author: Dag-Erling Smørgrav AuthorDate: 2026-05-04 12:08:10 +0000 Commit: Colin Percival CommitDate: 2026-05-07 20:18:53 +0000 vis.3: Try to better describe VIS_SAFE The current text fails to draw the reader's attention to the fact that VIS_SAFE essentially exempts certain characters from being encoded. While here, fix some markup nits. Approved by: re (cperciva) MFC after: 1 week Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D56716 (cherry picked from commit 8acc4c16c6635c3cd8871d0ee1221b62d48d71b9) (cherry picked from commit b21f08f97ba0c1e254b55e2ac66ec6853ad281f7) --- contrib/libc-vis/vis.3 | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/contrib/libc-vis/vis.3 b/contrib/libc-vis/vis.3 index 18329589d940..9b7b8152be3e 100644 --- a/contrib/libc-vis/vis.3 +++ b/contrib/libc-vis/vis.3 @@ -29,7 +29,7 @@ .\" .\" @(#)vis.3 8.1 (Berkeley) 6/9/93 .\" -.Dd April 22, 2017 +.Dd May 3, 2026 .Dt VIS 3 .Os .Sh NAME @@ -246,19 +246,22 @@ alter this: Also encode double quotes .It Dv VIS_GLOB Also encode the magic characters -.Ql ( * , +.Po +.Ql * , .Ql \&? , .Ql \&[ , and -.Ql # ) +.Ql # +.Pc recognized by .Xr glob 3 . .It Dv VIS_SHELL Also encode the meta characters used by shells (in addition to the glob characters): -.Ql ( ' , +.Po +.Ql ' , .Ql ` , -.Ql \&" , +.Ql \&\(dq , .Ql \&; , .Ql & , .Ql < , @@ -272,7 +275,8 @@ characters): .Ql \&! , .Ql \&^ , and -.Ql ~ ) . +.Ql ~ +.Pc . .It Dv VIS_SP Also encode space. .It Dv VIS_TAB @@ -286,13 +290,15 @@ Synonym for Synonym for .Dv VIS_WHITE | VIS_GLOB | VIS_SHELL . .It Dv VIS_SAFE -Only encode -.Dq unsafe -characters. -Unsafe means control characters which may cause common terminals to perform -unexpected functions. -Currently this form allows space, tab, newline, backspace, bell, and -return \(em in addition to all graphic characters \(em unencoded. +Leave +.Dq safe +characters unencoded. +Characters are only considered unsafe if they cause common terminals +to perform unexpected functions. +Setting the +.Dv VIS_SAFE +flag exempts the backspace, bell, and return characters from being +encoded. .El .Pp (The above flags have no effect for