From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49913) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gTgSj-0001LO-CM for guix-patches@gnu.org; Mon, 03 Dec 2018 00:08:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gTgSg-0008IH-Sz for guix-patches@gnu.org; Mon, 03 Dec 2018 00:08:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:54343) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gTgSg-0008I8-PU for guix-patches@gnu.org; Mon, 03 Dec 2018 00:08:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gTgSg-00038N-Ji for guix-patches@gnu.org; Mon, 03 Dec 2018 00:08:02 -0500 Subject: bug#33466: [PATCH 2/2] repl: Add 'colorized' and 'readline' support. Resent-To: guix-patches@gnu.org Resent-Message-ID: From: Oleg Pykhalov References: <20181122144228.31573-1-go.wigust@gmail.com> <20181122144228.31573-2-go.wigust@gmail.com> <874lc4vqjx.fsf@gnu.org> <871s71rn25.fsf@gmail.com> <87y397ltg7.fsf@gnu.org> Date: Mon, 03 Dec 2018 08:07:07 +0300 In-Reply-To: <87y397ltg7.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sun, 02 Dec 2018 18:38:48 +0100") Message-ID: <87woorqjus.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 33466@debbugs.gnu.org, 33466-done@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Oleg Pykhalov skribis: > >> From 95b95b24107084baf03e9635280a8c3136b2a356 Mon Sep 17 00:00:00 2001 >> From: Oleg Pykhalov >> Date: Thu, 22 Nov 2018 17:24:04 +0300 >> Subject: [PATCH] repl: Load user's initialization file. >> >> * guix/scripts/repl.scm (guix-repl): Load user's initialization file. > > [...] > >> (set-current-module user-module) >> + (when (file-exists? %guile-initialization-file) >> + (load %guile-initialization-file)) > > Rather: > > (and=3D> (getenv "HOME") > (lambda (home) > (when (file-exists? =E2=80=A6) > =E2=80=A6))) > > Otherwise if HOME is undefined simply loading (guix scripts repl) will > cause an error. Ah, I see. Thank you. Pushed as 37c6f11f8dfa1880db86a3510c9e50990304d76c Thanks, Oleg. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEcjhxI46s62NFSFhXFn+OpQAa+pwFAlwEufsACgkQFn+OpQAa +pyt6g/9GLGHPq7iK0HRMR1UnpZ6ZNjBJevYV2p85/PGLB8b9KNgsrP2wzI32o/6 vw2M6HQcxFNYg65TP+EB6rQg1HlV2wgfEelCV+rrTuRuUDGMLPNE08xGjXsQ98vW BdUhnEcWWUrnVdu7sVjSPTwYsv7bSim0rNumhl74KL4l6mRBdLLUyUJeds6c3l6l Ab1Cct4MaVdNddiI8SXCLeouACX1sRWRTqiISNG+DQn8S4ilWLFEYfoOO9wXyX+J FbxIN2doZPtYvZNc9f9bcVb85eX/11zRAudSsrGa6injUJ7/IlNZ+S2Z1pdavvrj y9Cy2lPxuhzCL40ZxSNS998s2YhkPBTYtDyLnEKrHsjItCZiSDIczKtlz0LdDmX3 G/KUSfD2LyGwg33IFV7A54rFAxc9fOn/Wll87hgnO2GrTJ+OyTj0J3/oW8a3SADh CiQj26AuHnxXCKsAatKVibYapqtgFXRTO0clbldNLO1VH1+C/hWphkUrDHMH/IBp yNs9dMzd94pmXW3IVIpq6EVPThNYU0WviENKjxb+jQHdewNoeXfNtjx22keOi7vb Ow7sblOw6oXJPy/XIecj3GFNom+DkllIe/VOBELQywexgQH5wqhQKNhyTRSnTajS 6JZVsvDHnBeCkT26cwnuiLRDxiok8AQeuWSAcwB/9rb7oncMNI0= =NcBZ -----END PGP SIGNATURE----- --=-=-=--