X-Envelope-From: notmuch-bounces@notmuchmail.org  Sun Aug 16 21:05:21 2026
Return-Path: <notmuch-bounces@notmuchmail.org>
X-Original-To: nmbug@yantan.tethera.net
Delivered-To: nmbug@yantan.tethera.net
Received: from yantan.tethera.net (localhost [127.0.0.1])
	by mail.notmuchmail.org (Postfix) with ESMTP id C5D9E5E6D1;
	Sun, 16 Aug 2026 21:05:21 +0000 (UTC)
Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [IPv6:2a0b:5c81:1c1::37])
	by mail.notmuchmail.org (Postfix) with ESMTPS id 5BADA5DFB1
	for <notmuch@notmuchmail.org>; Sun, 16 Aug 2026 21:05:18 +0000 (UTC)
Received: from meesny.iki.fi (meesny.iki.fi [195.140.195.201])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
	(No client certificate requested)
	by lahtoruutu.iki.fi (Postfix) with ESMTPS id 4hNT4n56F7z49Q4V
	for <notmuch@notmuchmail.org>; Mon, 17 Aug 2026 00:05:13 +0300 (EEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu;
	t=1786914313;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
	 in-reply-to:in-reply-to:references:references;
	bh=rPqJnTgyBDylV32gi5rUNn19cMWn/bHVZw2lC+zak+M=;
	b=IhIZXJnhAGy2aUIz2w3b//NvWD2wJA8hE5CQ2qtYbIRjrp5gSc9TW/8/LMH4uEXkQYwA8e
	/3JgKBdcHVdCIOG+hP2RCntuklnukpDLwps2shH/JYTjAOWLAVFQ47TD2vtAA0hTZIyYYm
	Ga6Ww9doA2aB7Wnbzvogmep0kaq9zGkns/nsnCsytM37YtTuP0l3F/CM76HnQgvH+niasq
	gJ7qWuX/G71cFQqlln/85nS32XywagbbN2qqu5L7LONESDYRGIHr/YPWz334/urfUp2dGO
	gjEt9NVom90OTLOlsQ+EfYgh1fiYunYi0LCCBXmUOEAe50MytmIp+Ui55iCU0A==
Received: from c53 (gw1.nor.fi [185.218.193.67])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange secp256r1 server-signature RSA-PSS (2048 bits) server-digest SHA256)
	(No client certificate requested)
	(Authenticated sender: too)
	by meesny.iki.fi (Postfix) with ESMTPSA id 4hNT4g0hybzyRf;
	Mon, 17 Aug 2026 00:05:06 +0300 (EEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny;
	t=1786914307;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
	 in-reply-to:in-reply-to:references:references;
	bh=rPqJnTgyBDylV32gi5rUNn19cMWn/bHVZw2lC+zak+M=;
	b=Y64Mx8QMJRWDspjjYhDyY4wwY/rZgaPOTxYPV5NyzHBlJy6MbUqKnOLFk+Xv/tU2XcdbrG
	aX153VVEIL0rR3DD3N7ZmIh/FIlAymdBN2W35JKYVQxTfWqupinxiNngNDInImTKmOjt5d
	vevOG/iHUnMhw9zqiEZm2gsSGOiHpDk=
ARC-Seal: i=1; a=rsa-sha256; d=iki.fi; s=meesny; cv=none; t=1786914307;
	b=SE0w3dM3KMEyVyEDTid2ZJMEaCOdCD65VijBEvvoC5OjG1B4wlGP/poVPMFmGDXNtW4yWN
	Gc/VLge0xEGpdn8fDEMIxoIjDsuMt7CoMpwHrew3QNoNjh0jZm3efHQIhA34KZQRJye51u
	C880+IUkj53EuHG3Zf4ebaWcBdMZ2Gw=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi;
	s=meesny; t=1786914307;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
	 in-reply-to:in-reply-to:references:references;
	bh=rPqJnTgyBDylV32gi5rUNn19cMWn/bHVZw2lC+zak+M=;
	b=K5+pRA4GvCnqS+vImRKleZpzO8USsaXOzir9JVyEj+eB3+cZVNvJsrxKiswOUMuCP8KN33
	auFXCcm3bOU1gE+g8bZoNh1sW3DthP5gpaA/iUEW/BdAX/lLo/N1M9424G2ZiVe0f5pJbL
	mFprl7ZGwnu/Y4IYBYJDnz0uFMPSmIk=
ARC-Authentication-Results: i=1;
	ORIGINATING;
	auth=pass smtp.auth=too smtp.mailfrom=tomi.ollila@iki.fi
From: Tomi Ollila <tomi.ollila@iki.fi>
To: David Bremner <david@tethera.net>, inwit <inwit@sindominio.net>,
 notmuch@notmuchmail.org
Subject: Re: [PATCH 3/3] test: add tests for --profile CLI option
In-Reply-To: <874iguduig.fsf@tethera.net>
References: <20260509155257.2477368-1-inwit@sindominio.net>
 <20260509155257.2477368-4-inwit@sindominio.net>
 <874iguduig.fsf@tethera.net>
User-Agent: Notmuch/0.40+24~gc45207d (https://notmuchmail.org) Emacs/27.1
X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL
	$[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F
	!)g;OY^,BjTbr)Np:%c_o'jj,Z
Date: Mon, 17 Aug 2026 00:05:06 +0300
Message-ID: <y0y7ofi.u36o58-too@iki.fi>
MIME-Version: 1.0
Message-ID-Hash: NCYSXHMC2FCGSNO6PW7QAGGVICBHAH2Z
X-Message-ID-Hash: NCYSXHMC2FCGSNO6PW7QAGGVICBHAH2Z
X-MailFrom: tomi.ollila@iki.fi
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: inwit <inwit@sindominio.net>
X-Mailman-Version: 3.3.3
Precedence: list
List-Id: "Use and development of the notmuch mail system." <notmuch.notmuchmail.org>
List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
List-Owner: <mailto:notmuch-owner@notmuchmail.org>
List-Post: <mailto:notmuch@notmuchmail.org>
List-Subscribe: <mailto:notmuch-join@notmuchmail.org>
List-Unsubscribe: <mailto:notmuch-leave@notmuchmail.org>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

On Sun, Aug 16 2026, David Bremner wrote:

> inwit <inwit@sindominio.net> writes:
>>  
>> +xdg_config_cli () {
>> +    local dir
>> +    local profile=${1:-default}
>> +    backup_config
>> +    dir="${HOME}/.config/notmuch/${profile}"
>> +    rm -rf $dir
> I wonder if we should have " " around $dir here?
> Basically if $HOME has spaces, the whole build will blow up, but maybe
> extra caution for rm -rf is suitable.

Definitely "$dir" (HOME seldom has spaces (nor $1)). At least it is
good for example.

... but, dir=${HOME}/.config/notmuch/${profile} would have worked
(I am not suggesting to change that, though :D)

Tomi

_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org
