From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 343F2158287 for ; Tue, 13 May 2025 00:30:20 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 203B63435A6 for ; Tue, 13 May 2025 00:30:20 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id D7B011103C1; Tue, 13 May 2025 00:30:13 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id CD2231103C0 for ; Tue, 13 May 2025 00:30:13 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8195F343509 for ; Tue, 13 May 2025 00:30:13 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AF62C27E6 for ; Tue, 13 May 2025 00:30:11 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1747048178.d03098998850d5f026a30f20eec54a4600518d9f.sam@gentoo> Subject: [gentoo-commits] proj/gentoo-functions:master commit in: / X-VCS-Repository: proj/gentoo-functions X-VCS-Files: functions.sh X-VCS-Directories: / X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: d03098998850d5f026a30f20eec54a4600518d9f X-VCS-Branch: master Date: Tue, 13 May 2025 00:30:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d7984954-2ef1-4e92-baef-7122a86d9d2b X-Archives-Hash: e43126aaabdc6a2052accad2b485e775 commit: d03098998850d5f026a30f20eec54a4600518d9f Author: Kerin Millar plushkava net> AuthorDate: Mon May 12 11:09:38 2025 +0000 Commit: Sam James gentoo org> CommitDate: Mon May 12 11:09:38 2025 +0000 URL: https://gitweb.gentoo.org/proj/gentoo-functions.git/commit/?id=d0309899 Simplify the detection of posixlycorrect mode in yash Yash supports test -o to this end. Signed-off-by: Kerin Millar plushkava.net> functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.sh b/functions.sh index ec0df2d..e4f5a7c 100644 --- a/functions.sh +++ b/functions.sh @@ -61,7 +61,7 @@ case ${KSH_VERSION} in 'Version AJM 93'*) return 1 esac -if [ "${YASH_VERSION}" ] && set +o | grep -qxF 'set -o posixlycorrect'; then +if [ "${YASH_VERSION}" ] && [ -o posixlycorrect ]; then # The yash shell disables the local builtin in its POSIXly-correct mode. warn "gentoo-functions does not support yash in posixlycorrect mode" return 1