Re: [PATCH] config: Expand ~ to $HOME
authorDavid Edmondson <dme@dme.org>
Wed, 11 May 2016 20:11:39 +0000 (21:11 +0100)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 23:21:48 +0000 (16:21 -0700)
4a/9e338d060b38bee306900cba7cf64f1d42aae2 [new file with mode: 0644]

diff --git a/4a/9e338d060b38bee306900cba7cf64f1d42aae2 b/4a/9e338d060b38bee306900cba7cf64f1d42aae2
new file mode 100644 (file)
index 0000000..1be8776
--- /dev/null
@@ -0,0 +1,116 @@
+Return-Path: <dme@dme.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id E32B26DE0173\r
+ for <notmuch@notmuchmail.org>; Wed, 11 May 2016 13:11:51 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.188\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.188 tagged_above=-999 required=5\r
+ tests=[AWL=-0.121, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,\r
+ RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01,\r
+ RCVD_IN_MSPIKE_WL=-0.01, SPF_NEUTRAL=0.652, UNPARSEABLE_RELAY=0.001]\r
+ autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id A5NKqSJaZyeo for <notmuch@notmuchmail.org>;\r
+ Wed, 11 May 2016 13:11:44 -0700 (PDT)\r
+Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com\r
+ [74.125.82.65]) by arlo.cworth.org (Postfix) with ESMTPS id 93E8F6DE00D3 for\r
+ <notmuch@notmuchmail.org>; Wed, 11 May 2016 13:11:43 -0700 (PDT)\r
+Received: by mail-wm0-f65.google.com with SMTP id r12so11674000wme.0\r
+ for <notmuch@notmuchmail.org>; Wed, 11 May 2016 13:11:43 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=dme-org.20150623.gappssmtp.com; s=20150623;\r
+ h=to:cc:subject:in-reply-to:references:from:date:message-id\r
+ :mime-version; bh=+fp+yBiMUAy1zFFH92c5hxw1VYxJ5unoFOscAd2kQtM=;\r
+ b=UkhSP3KpyKHyBw09v9otWOvsXWqP7mFC3BGCzPKbUeZFcKVVCrxYy7hgXv3OHqKFxU\r
+ aRll+3bDY2mS5fg+sNuJi/Yv3UuwpLhgkbQN9/mAg/cm2W/Xx1sZ5J9cMqwUE+DgDTxp\r
+ EsgVISsS0ldroFcLVyKyylofqW/Qa/J5PuUrxMHX49JWsf58Cw+kRkeTxzLE2gDaZsjm\r
+ XybkegDTFI7lWDlocdY8X0sjt+GLVbj0J7RcQ9M7lbQ6xAPMdRzRFEYNz6244brcfDAq\r
+ zv62pls+Q5DZ8YWlFZg02CTl2rX6+7QkeaFG9qHRh06B4bVOSDYSCK0Gv7RCtfGR4pbN\r
+ /9HQ==\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=1e100.net; s=20130820;\r
+ h=x-gm-message-state:to:cc:subject:in-reply-to:references:from:date\r
+ :message-id:mime-version;\r
+ bh=+fp+yBiMUAy1zFFH92c5hxw1VYxJ5unoFOscAd2kQtM=;\r
+ b=VT3LeBjz66HJcgGVcf+BeWT5AQfvNm6ItRfHCc+AEqcRw32q54sJi49NVv3vQIsvKY\r
+ IeQj2CFKedgvxx764h25q4b7PeCTCa3NEIufwQsUMARIybVYmsmBMgeBGmhOoz+ZxiBj\r
+ xB8FNxNxkZ55tLDPlebZYbS1bsyYNxoL891CKXZLEaYwX3Sj3wcIR2VtumtXbK3mB0K6\r
+ 9sQWnSAI6GRIMr9fewMeSWTfI6Kf3FXA2eg10MyjtStN+BYvIcuSRkcR3RU8SABYKs+k\r
+ 4t7idFV7IYz+PpnkVmHT2ob2Ewy5mSZPK4gxO6EaTiS+n2OGipWRWKDVX4501KV/vCzF\r
+ zO9Q==\r
+X-Gm-Message-State:\r
+ AOPr4FWDIY/G1vIvXP6BuMqJSWM0ZwQcOLg1O1UEp0QQ2rSym95iE6GM1QN7JDA4J9u1Og==\r
+X-Received: by 10.194.142.240 with SMTP id rz16mr5666077wjb.126.1462997501664;\r
+  Wed, 11 May 2016 13:11:41 -0700 (PDT)\r
+Received: from disaster-area.hh.sledj.net\r
+ ([2a01:348:1a2:1:ea39:35ff:fe2c:a227])\r
+ by smtp.gmail.com with ESMTPSA id g197sm37503129wme.15.2016.05.11.13.11.40\r
+ (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+ Wed, 11 May 2016 13:11:40 -0700 (PDT)\r
+Received: from localhost (disaster-area.hh.sledj.net [local])\r
+ by disaster-area.hh.sledj.net (OpenSMTPD) with ESMTPA id 692d4834;\r
+ Wed, 11 May 2016 20:11:39 +0000 (UTC)\r
+To: Bijan Chokoufe <bijan@chokoufe.com>, Tomi Ollila <tomi.ollila@iki.fi>\r
+Cc: notmuch@notmuchmail.org\r
+Subject: Re: [PATCH] config: Expand ~ to $HOME\r
+In-Reply-To:\r
+ <CAOsAL0rr2FdG1gPOcaMV_iqORRrXAKYc8wA_YWWjC+TTibar3w@mail.gmail.com>\r
+References: <1462722574-4176-1-git-send-email-bijan@chokoufe.com>\r
+ <m2r3dc7azk.fsf@guru.guru-group.fi>\r
+ <CAOsAL0pp+3b-sf_k5kdrN7r1W8EtkC2vJ44Mg-e+su-8V=H6bQ@mail.gmail.com>\r
+ <m21t5bll8y.fsf@guru.guru-group.fi> <20160509215724.GA3634@600B5B>\r
+ <m28tzi9vah.heart-of-gold@dme.org>\r
+ <CAOsAL0rr2FdG1gPOcaMV_iqORRrXAKYc8wA_YWWjC+TTibar3w@mail.gmail.com>\r
+From: David Edmondson <dme@dme.org>\r
+Date: Wed, 11 May 2016 21:11:39 +0100\r
+Message-ID: <m2mvnw8idg.heart-of-gold@dme.org>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.20\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Wed, 11 May 2016 20:11:52 -0000\r
+\r
+On Wed, May 11 2016, Bijan Chokoufe wrote:\r
+\r
+> so what would be the spec for handling ~user?\r
+\r
+Look up "user" in the password file and replace "~user" with their home\r
+directory. See getpwnam().\r
+\r
+> As Tomi pointed out ~foo will point to different folders if set by user\r
+> 'foo' or by user 'bar'.\r
+\r
+~foo means "the home directory of user foo", independent of who is using\r
+it, so it will be the same when used by both user foo and user bar.\r
+\r
+> To what folder should it point and where do I get this information?\r
+>\r
+> David Edmondson <dme@dme.org> schrieb am Di., 10. Mai 2016 um 10:22 Uhr:\r
+>\r
+>> On Mon, May 09 2016, Bijan Chokoufe Nejad wrote:\r
+>>\r
+>> >> ~user is ~ in case you're 'user' -- except that now that I think of it\r
+>> >> ~user could read home directory from /etc/passwd and not using $HOME.\r
+>> >> If you're 'eve', then ~alice should definitely be different than ~\r
+>> >\r
+>> > OK I see. I never used ~user instead of ~ and don't see any advantage in\r
+>> using\r
+>> > ~user but good to know it's there.\r
+>>\r
+>> A solution that supports ~ but not ~user seems incomplete.\r
+>>\r