From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1632898-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 537F91581D3 for <garchives@archives.gentoo.org>; Sat, 18 May 2024 16:06:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 922F2E2A13; Sat, 18 May 2024 16:06:51 +0000 (UTC) Received: from smtp.gentoo.org (mail.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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7553AE2A13 for <gentoo-commits@lists.gentoo.org>; Sat, 18 May 2024 16:06:51 +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 A5091335DCD for <gentoo-commits@lists.gentoo.org>; Sat, 18 May 2024 16:06:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 14F1E132F for <gentoo-commits@lists.gentoo.org>; Sat, 18 May 2024 16:06:49 +0000 (UTC) From: "Sam James" <sam@gentoo.org> 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" <sam@gentoo.org> Message-ID: <1716048405.c0868e07f874b47c9f353c47b3b9ad34e0b5f828.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: c0868e07f874b47c9f353c47b3b9ad34e0b5f828 X-VCS-Branch: master Date: Sat, 18 May 2024 16:06:49 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5cb4c437-946d-41d6-b7d9-cb65b95bb8ae X-Archives-Hash: f34f0f85e841bed70514657e13592663 commit: c0868e07f874b47c9f353c47b3b9ad34e0b5f828 Author: Kerin Millar <kfm <AT> plushkava <DOT> net> AuthorDate: Sat May 18 15:51:23 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat May 18 16:06:45 2024 +0000 URL: https://gitweb.gentoo.org/proj/gentoo-functions.git/commit/?id=c0868e07 Signify end of options to awk in edo() This is a fairly important fix because awk doesn't stop looking for options upon encountering the first non-option argument. Signed-off-by: Kerin Millar <kfm <AT> plushkava.net> Signed-off-by: Sam James <sam <AT> gentoo.org> functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.sh b/functions.sh index fdba0c1..db3314a 100644 --- a/functions.sh +++ b/functions.sh @@ -95,7 +95,7 @@ ebegin() edo() { # Approximate the effect of ${param@Q} bash expansion. genfun_cmd=$( - awk -v q=\' -f - "$@" <<-'EOF' + awk -v q=\' -f - -- "$@" <<-'EOF' BEGIN { argc = ARGC ARGC = 1