From mboxrd@z Thu Jan 1 00:00:00 1970 From: YOANN P Subject: RE: guix gc doesn't seem to clean old guix revision Date: Wed, 11 Dec 2019 11:13:53 +0000 Message-ID: References: <87h82u32v3.fsf@gnu.org> , <87eexcp2zk.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:40215) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1if1jd-0006xg-9q for guix-devel@gnu.org; Wed, 11 Dec 2019 08:08:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1if1jb-0005qD-K4 for guix-devel@gnu.org; Wed, 11 Dec 2019 08:08:56 -0500 In-Reply-To: <87eexcp2zk.fsf@gnu.org> Content-Language: fr-FR List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: =?Windows-1252?Q?Ludovic_Court=E8s?= Cc: "guix-devel@gnu.org" > Hi Yoann,=0A= =0A= Hi Ludo,=0A= =0A= > I had not understood that.=A0 I guess the patch below fixes it, I=92ll pu= sh=0A= > t shortly.=0A= =0A= > Thanks,=0A= > Ludo=92.=0A= =0A= Look great, but IMO, your addition, "(passwd:name (getpwuid (getuid))))",= =0A= should be the only way to get the username since $USER and $LOGNAME=0A= could be overridden or unset.=0A= =0A= I don't always do it in my own scripts, but it is better to do not relay on= =0A= env vars when you want something to be bulletproof.=0A= =0A= Since there is "passwd:dir pw", $HOME could be replaced with it too.=0A= =0A= Thanks,=0A= Yoann=0A= =0A=