git: 34d7f100c1d9 - main - lesspipe: Use zstdcat

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Mon, 02 Mar 2026 19:18:46 UTC
The branch main has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=34d7f100c1d9e6f21d2f79097e891f7a17749d1b

commit 34d7f100c1d9e6f21d2f79097e891f7a17749d1b
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2026-02-23 18:59:55 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2026-03-02 19:18:41 +0000

    lesspipe: Use zstdcat
    
    zstdcat is equivalent to zstd -dcf, and matches our intention.
    
    Suggested by:   delphij (in D55101)
    Sponsored by:   The FreeBSD Foundation
---
 usr.bin/less/lesspipe.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.bin/less/lesspipe.sh b/usr.bin/less/lesspipe.sh
index 6fc6cc471638..7992cc4e2e3d 100644
--- a/usr.bin/less/lesspipe.sh
+++ b/usr.bin/less/lesspipe.sh
@@ -21,7 +21,7 @@ case "$1" in
 		exec lzma -d -c "$1"	2>/dev/null
 		;;
 	*.zst)
-		exec zstd -d -q -c -f "$1"	2>/dev/null
+		exec zstdcat -q "$1"	2>/dev/null
 		;;
 	*)	exec cat "$1"		2>/dev/null
 		;;