From nobody Mon Feb 20 11:16:43 2023 X-Original-To: dev-commits-src-main@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 4PL0HH5tsTz3sfJg; Mon, 20 Feb 2023 11:16:43 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PL0HH5Pr7z3HWh; Mon, 20 Feb 2023 11:16:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676891803; 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=4BVpxzyjMZ/RGb/U/Lcf/68/y46/n7riydnGNrAMOt8=; b=xWealB709iwxXi505NXQzdTM6oYRuffCI3rdan7CQoEhIT8p/682DEfRouC1Z1J09+QKMK rTwHMr2BOnpeaydSezE9g9irAb3u1X5kThbingsOcrG7ZZkfUrTSkw2a0VAu8KYvibMvd0 ergi0SWvcInK+pIEjJWe/drfvY6FTQFO8RjNGbdZOvK4Bzi97OtZ2cXfoAUNGm+RvKBesF ZMiZkYa8qcSUdXecVjv0euzj+RFsAONi8yEaCOrUNcBZH1+IcJ4N+r3GYdl/TJpFRHTSGh AcY2HPeHlBgTWHtDec+vKeEM1zJfjGNilkW7Hrg+ESnUjserd2TS+6u26hWczA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676891803; 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=4BVpxzyjMZ/RGb/U/Lcf/68/y46/n7riydnGNrAMOt8=; b=IeVpE22fMmcBZjX7+rgZGuDcyNkEo7HzsDycYZ/RVVM2cZ2ePukFusKmJwC4CN40DyP0Ok zj7/KKxofSFkzVQEKWgLhcJPST/pWI9FQ24X7tGCA+juYzrpaQTWr/gpOaV78gEFFpPxXD URf5JABQ+jqsY+js9VTk6Ky2mcDwxG6QVolPV2ohv75xNyvBJtTdQuwP2alCY86Bt1anXp 9plD+F/7rExjUaRMwljPt0ZHzwgACRmEP44WrHgcTojPYYP3lvWABk+bMZSReWyZCEnThh 6tHEomjFB5znNOPvFpLUq3s/b1D2wdlDhYG/YKM0kSBjgf06U6yR60UTuWyGJA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676891803; a=rsa-sha256; cv=none; b=mUeJQ8Tjcc1/gHmY48DaBoGSD8hu/FRIzjOyoWFvy0ZJTdx8fSLC92dRMbe/lH/n3sBsVJ OeKl1i+MhmelFl8ZZc8pvOZv0/QkzpJKnku4mzT+sYmnTHlfVK56gSoH892rODWij3dPVL mKkulahpNLVANXiC0MZOMfLs5kRF5WQPhrpyrgiUQPsricKD51n2lsf5ORrLRbvcIbUEeY RTSzwK332EEFp6fHjuKZqFiNhiGTyxUMYCrHWlfx/lscc2JlJpDoszSufmK+DIjQJilsbu tfBXxj/mgs8lIolkTnEA9yGpcMml+LzN2XlAjrJMOmkNwuDT+2yV59bg7tea0w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4PL0HH4DYvzfgb; Mon, 20 Feb 2023 11:16:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 31KBGhaU020051; Mon, 20 Feb 2023 11:16:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31KBGhU4020050; Mon, 20 Feb 2023 11:16:43 GMT (envelope-from git) Date: Mon, 20 Feb 2023 11:16:43 GMT Message-Id: <202302201116.31KBGhU4020050@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: =?utf-8?Q?Fernando=20Apestegu=C3=ADa?= Subject: git: e6ffcf4ac7bb - main - zless(1): handle uncompressed files List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fernape X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e6ffcf4ac7bbfff95fdf7d6debc22880054abc76 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by fernape: URL: https://cgit.FreeBSD.org/src/commit/?id=e6ffcf4ac7bbfff95fdf7d6debc22880054abc76 commit e6ffcf4ac7bbfff95fdf7d6debc22880054abc76 Author: Fernando ApesteguĂ­a AuthorDate: 2023-02-19 16:31:11 +0000 Commit: Fernando ApesteguĂ­a CommitDate: 2023-02-20 10:15:09 +0000 zless(1): handle uncompressed files In the manual page for zmore(1) and zless(1) it is said that zless(1) is equivalent to zmore(1) except that it uses less(1) as a pager. However zmore(1) is able to handle uncompressed files transparently while zless(1) is not. Add another case to the switch in lesspipe.sh to handle non-compressed files. PR: 196437 Reported by: marquis@roble.com Approved by: mjg@ Differential Revision: https://reviews.freebsd.org/D38674 --- usr.bin/less/lesspipe.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr.bin/less/lesspipe.sh b/usr.bin/less/lesspipe.sh index 05df4d02b42c..079517679a6d 100644 --- a/usr.bin/less/lesspipe.sh +++ b/usr.bin/less/lesspipe.sh @@ -25,4 +25,6 @@ case "$1" in *.zst) exec zstd -d -q -c "$1" 2>/dev/null ;; + *) exec cat "$1" 2>/dev/null + ;; esac