From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 56E96C433EF for ; Tue, 21 Jun 2022 22:34:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354592AbiFUWep (ORCPT ); Tue, 21 Jun 2022 18:34:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354483AbiFUWed (ORCPT ); Tue, 21 Jun 2022 18:34:33 -0400 Received: from pb-smtp1.pobox.com (pb-smtp1.pobox.com [64.147.108.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA9CF12AA9 for ; Tue, 21 Jun 2022 15:34:31 -0700 (PDT) Received: from pb-smtp1.pobox.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id DA4C0136C56; Tue, 21 Jun 2022 18:34:30 -0400 (EDT) (envelope-from junio@pobox.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=sasl; bh=kMwi4ovImLC0 sn6675IH7VfFQpo0egaxQKPMRMA9MX0=; b=K+8ahuZJ9yrPUV0CrUISlk/pMuFl q/vvfVHRIAeonwMXIQqkSm96Dcitrjx0Zrh0kxtZSjBJ5xpeXuhz7RGGpPwSpX/z gzD5vpyljsoQxIlomdehEWZDN06MsOv9bDYEwbrkjBWW7ECVP9PZdTqttxu5hgY2 WueI1Sb4omcFrFs= Received: from pb-smtp1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id D101C136C55; Tue, 21 Jun 2022 18:34:30 -0400 (EDT) (envelope-from junio@pobox.com) Received: from pobox.com (unknown [34.82.80.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp1.pobox.com (Postfix) with ESMTPSA id 47BFF136C53; Tue, 21 Jun 2022 18:34:30 -0400 (EDT) (envelope-from junio@pobox.com) From: Junio C Hamano To: =?utf-8?B?w4Z2YXIgQXJuZmrDtnLDsA==?= Bjarmason Cc: git@vger.kernel.org, Derrick Stolee , rsbecker@nexbridge.com, SZEDER =?utf-8?Q?G=C3=A1bor?= , Johannes Sixt , Jeff King Subject: Re: [PATCH 3/3] config tests: fix harmless but broken "rm -r" cleanup References: Date: Tue, 21 Jun 2022 15:34:29 -0700 In-Reply-To: (=?utf-8?B?IsOGdmFyCUFybmZqw7Zyw7A=?= Bjarmason"'s message of "Wed, 22 Jun 2022 00:21:40 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Pobox-Relay-ID: 50C3ADC4-F1B2-11EC-A989-5E84C8D8090B-77302942!pb-smtp1.pobox.com Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org =C3=86var Arnfj=C3=B6r=C3=B0 Bjarmason writes: > test_expect_success 'override global and system config' ' > - test_when_finished rm -f "$HOME"/.config/git && > + test_when_finished "rm -rf \"$HOME\"/.config/git" && As this string is evaled, isn't it safer to defer dereferencing the environment variable at the runtime by quoting the dollar-sign, too? I.e. test_when_finished rm -rf \"\$HOME\"/.config/git && or something?