From patchwork Sun May 4 21:43:18 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip Prindeville X-Patchwork-Id: 2080904 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=r3+kNlok; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4ZrJ9305n2z1yPv for ; Mon, 5 May 2025 07:44:52 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type:List-Help: Reply-To:List-Archive:List-Unsubscribe:List-Subscribe:From:List-Post:List-Id: Message-ID:MIME-Version:Date:Subject:To:Cc:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=rPUrlvhyw3ngakHthoDdTF/MVybKbxPTSj4Uzd2Jq64=; b=r3+kNlok+r427xbtWTyByXvI1+ kzc/AoDB/q0WYt4hpy37RI12Du2juECQducRV0vOLan7pM9GZNfAKsXLDZRl+3Ec9mWAqgzksB1WJ FuRMY57dKMcVGNFcmfOyE+1fdsfY0i/dBFwVqfCId1Tox/M1if+FZsshKC8d27sy0YEJQuPRdRKh4 QW1juLoYmqOhYBuy1+nBREFNrly77YRTy8b3KtQrla9UA/lk4KiX9Sn4DjNqj204vvJ+YkYX8GDoT Ui0mznRxajNfPGM8yIteF8Pi+HOLdd0qEat+5mFOfxTnjiIw2zHIzmUJuR9VkQ8AtAtLittAU6Mbm t+zri+8Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uBh7M-00000005zmO-1rtn; Sun, 04 May 2025 21:43:24 +0000 To: openwrt-devel@lists.openwrt.org Subject: [PATCH 1/1] jshn.sh: Drop extraneous space when appending values to variable Date: Sun, 4 May 2025 15:43:18 -0600 MIME-Version: 1.0 Message-ID: List-Id: OpenWrt Development List List-Post: X-Patchwork-Original-From: Philip Prindeville via openwrt-devel From: Philip Prindeville Precedence: list X-Mailman-Version: 2.1.34 X-BeenThere: openwrt-devel@lists.openwrt.org List-Subscribe: , List-Unsubscribe: , List-Archive: Reply-To: Philip Prindeville List-Help: Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org The sender domain has a DMARC Reject/Quarantine policy which disallows sending mailing list messages using the original "From" header. To mitigate this problem, the original message has been wrapped automatically by the mailing list software. From: Philip Prindeville fixes: issue #15 Signed-off-by: Felix Fietkau Signed-off-by: Philip Prindeville --- sh/jshn.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sh/jshn.sh b/sh/jshn.sh index 1d3055711820e5a21ea59cae49e7bf3f56b626d8..66ca9524a041ebd71cbad044d9a9fc595393296b 100644 --- a/sh/jshn.sh +++ b/sh/jshn.sh @@ -23,7 +23,7 @@ __jshn_raw_append() { _jshn_append() { # var=$1 local _a_value="$2" - eval "${JSON_PREFIX}$1=\"\${${JSON_PREFIX}$1} \$_a_value\"" + eval "${JSON_PREFIX}$1=\"\${${JSON_PREFIX}$1}\${${JSON_PREFIX}$1:+ }\$_a_value\"" } _get_var() {