From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#33755: error: execlp: No such file or directory from guix environment Date: Sun, 16 Dec 2018 17:05:31 +0100 Message-ID: <8736qxtq2c.fsf@gnu.org> References: <6d6639a0587b793ec342c7d1de36e7c3@riseup.net> <87h8femz5z.fsf@ngyro.com> <875zvumyd3.fsf@ngyro.com> <20181215203853.1b267a72@scratchpost.org> <87efaiyu5c.fsf@ngyro.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57711) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gYYvf-00079x-0d for bug-guix@gnu.org; Sun, 16 Dec 2018 11:06:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gYYvb-0003HF-V9 for bug-guix@gnu.org; Sun, 16 Dec 2018 11:06:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:46263) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gYYva-0003Fv-0b for bug-guix@gnu.org; Sun, 16 Dec 2018 11:06:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gYYvZ-00070I-Qw for bug-guix@gnu.org; Sun, 16 Dec 2018 11:06:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87efaiyu5c.fsf@ngyro.com> (Timothy Sample's message of "Sat, 15 Dec 2018 23:26:07 -0500") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Timothy Sample Cc: swedebugia@riseup.net, 33755@debbugs.gnu.org Hello comrades! Timothy Sample skribis: > Danny Milosavljevic writes: > >> Hi Tim, >> >> I like it in princple, but why special-case ENOENT? I think it would >> be better to just always print the program name (and maybe program >> args, too!) and the system error message. > > You are right. [...] > From aedc745a3f9765ae00dc61a59fa53d22a458551b Mon Sep 17 00:00:00 2001 > From: Timothy Sample > Date: Sat, 15 Dec 2018 23:17:46 -0500 > Subject: [PATCH] environment: Print command name on execlp error. > > Fixes . > > * guix/scripts/environment.scm (launch-environment): When execlp fails, > include the command name in the error message. Another option would be to do: (set! execl (error-reporting-wrapper =E2=80=A6)) in (guix ui), as done for a few other procedures that have the same issue. WDYT? Ludo=E2=80=99.