Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1qJ3dY-0001ef-9d for mharc-grub-devel@gnu.org; Mon, 10 Jul 2023 23:02:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qJ3dX-0001eK-At for grub-devel@gnu.org; Mon, 10 Jul 2023 23:01:59 -0400 Received: from mail-vs1-xe31.google.com ([2607:f8b0:4864:20::e31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qJ3dW-0006Sa-0C for grub-devel@gnu.org; Mon, 10 Jul 2023 23:01:59 -0400 Received: by mail-vs1-xe31.google.com with SMTP id ada2fe7eead31-440c368b4e2so1607450137.2 for ; Mon, 10 Jul 2023 20:01:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficientek-com.20221208.gappssmtp.com; s=20221208; t=1689044516; x=1691636516; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=y9/mOrIsDCAsmjxaLB0iyxkXoAv31Bi2AFMl74vGUxg=; b=sONJVP6/eCuEcazx8v62Qd4St1gZj6vIMTipoy3NoxZyhnhiWUkT1SChCu7iy9Ye0r E3Mi0iKv+4no3H1GsXxcd9KN4fAJFyqtzOyEx0N8uCwvT2lkw9RCM8xo8mHMNyaktg4F FblcR0zwYM5a/xyE6ZXh6X5WCUGSYMjHVicR5iDaafbp6Tl9x3KPAhOMxUUzV7+WP1F+ 0lWgbeK9DshrxPfdA+ng7Cgvoc7QI9/fUauGnXnujxJu/FBKI+Vpq2BkxYH2JgKphgA2 d4Vm8Nv2q+9ci8/7b7fBj3Tp6JMsVHGIFnTHSu/150KLqya+YL68AuunLMj9Q+MF9bu6 t2pQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689044516; x=1691636516; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=y9/mOrIsDCAsmjxaLB0iyxkXoAv31Bi2AFMl74vGUxg=; b=X0FjIZxYIp7jhXuNwogc/4quK2tZdwhWfAC1vmaXSwBoqYyz9SRWCvs7ZxqVFMPdQE K96ViEh4ONpXv/20fVS+mBPBsN9jue48y90cagxvM4T/bjoS2wRU0ilGAOFBz7wBuY1U kc6ZLF7oxjLxwzta+EnGx2CimP7nW6tekPnHYWT5J/m5p23/2pi9ojuadl2vhjKGBjZw 3TiJJDYoJPbsnpTYeMUV5OU+dtsez+gsbhrmHDgs72mGstFiIU+V+KyA8QfEp8bqGgAr 9gLS+gZsz/C5QdFrTrvRDDj0eUaES3/mPheFOFMBhrstifNmFCc5JLfPNdhx/X8m0G2Z jtZQ== X-Gm-Message-State: ABy/qLbs/CM/QvyvhefhxWFFCRkhBGaqFJ7dqnJ4Wpd/HMC252coI14u sMkL0IHczh0vdZ5G4tEdcVT3Lh/NxDm89Ckdayo= X-Google-Smtp-Source: APBJJlFkKydGNkov6PpuKMmJL9ftd1h6M1HoITLa9K6Xh6n4wMLL7zs2W3BMFs1nQBfAMRZE94qlGg== X-Received: by 2002:a05:6102:247:b0:443:5f6e:c1b5 with SMTP id a7-20020a056102024700b004435f6ec1b5mr6719839vsq.18.1689044516690; Mon, 10 Jul 2023 20:01:56 -0700 (PDT) Received: from localhost.localdomain ([37.218.244.249]) by smtp.gmail.com with ESMTPSA id w21-20020ab055d5000000b00789a6c15851sm114480uaa.13.2023.07.10.20.01.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jul 2023 20:01:56 -0700 (PDT) From: Glenn Washburn To: grub-devel@gnu.org, Daniel Kiper Cc: Glenn Washburn Subject: [PATCH 3/4] grub-shell: Allow setting the value of debug regardless of its previous state Date: Mon, 10 Jul 2023 22:01:18 -0500 Message-Id: <2fa17a72176b1470ee0a26b1a7e739e46aefe86a.1689044372.git.development@efficientek.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::e31; envelope-from=development@efficientek.com; helo=mail-vs1-xe31.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jul 2023 03:01:59 -0000 This allows an invocation of grub-shell to set the value of debug regardless of the global default environment variable GRUB_SHELL_DEFAULT_DEBUG. Signed-off-by: Glenn Washburn --- tests/util/grub-shell.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/util/grub-shell.in b/tests/util/grub-shell.in index 9669b7227c10..e066105de917 100644 --- a/tests/util/grub-shell.in +++ b/tests/util/grub-shell.in @@ -248,6 +248,8 @@ for option in "$@"; do trim=0 ;; --debug) debug=$((debug+1)) ;; + --debug=*) + debug=$((`echo "$option" | sed -e 's/--debug=//'`)) ;; --modules=*) ms=`echo "$option" | sed -e 's/--modules=//' -e 's/,/ /g'` modules="$modules $ms" ;; -- 2.34.1