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