From 8aa194a9b4ba54b48e39d1a674279c9b3630dc1c Mon Sep 17 00:00:00 2001 From: Tomi Ollila Date: Mon, 9 May 2016 11:40:33 +0300 Subject: [PATCH] Re: [PATCH] config: Expand ~ to $HOME --- 28/82f645dddf08815012c856d229bf316951ba07 | 62 +++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 28/82f645dddf08815012c856d229bf316951ba07 diff --git a/28/82f645dddf08815012c856d229bf316951ba07 b/28/82f645dddf08815012c856d229bf316951ba07 new file mode 100644 index 000000000..de4546d90 --- /dev/null +++ b/28/82f645dddf08815012c856d229bf316951ba07 @@ -0,0 +1,62 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id B21786DE0022 + for ; Mon, 9 May 2016 01:40:43 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: 0.592 +X-Spam-Level: +X-Spam-Status: No, score=0.592 tagged_above=-999 required=5 tests=[AWL=-0.060, + SPF_NEUTRAL=0.652] autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id 5-99rS3LjfWI for ; + Mon, 9 May 2016 01:40:35 -0700 (PDT) +Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) + by arlo.cworth.org (Postfix) with ESMTP id 2A3A86DE0005 + for ; Mon, 9 May 2016 01:40:35 -0700 (PDT) +Received: from guru.guru-group.fi (localhost [IPv6:::1]) + by guru.guru-group.fi (Postfix) with ESMTP id A88141000B3; + Mon, 9 May 2016 11:40:33 +0300 (EEST) +From: Tomi Ollila +To: Bijan Chokoufe , notmuch@notmuchmail.org +Subject: Re: [PATCH] config: Expand ~ to $HOME +In-Reply-To: +References: <1462722574-4176-1-git-send-email-bijan@chokoufe.com> + + + +User-Agent: Notmuch/0.22+18~gbe09ed8 (http://notmuchmail.org) Emacs/24.5.1 + (x86_64-unknown-linux-gnu) +X-Face: HhBM'cA~ +MIME-Version: 1.0 +Content-Type: text/plain +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.20 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Mon, 09 May 2016 08:40:43 -0000 + +On Mon, May 09 2016, Tomi Ollila wrote: + +> your code checked that path[0] == '~', but nothing else, e.g. +> +> ~123randomstuff/... would expand as /home/user23randomstuff/... + +actually /home/user/23randomstuff/... + +Tomi -- 2.26.2