bug-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#66254: "guix --version | head -1" crashes most of the time


From: Clément Lassieur
Subject: bug#66254: "guix --version | head -1" crashes most of the time
Date: Thu, 12 Oct 2023 10:58:17 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Simon Tournier <zimon.toutoune@gmail.com> writes:

> Hi Clément,

Hey Simon,

[...]

> Anyway.  The issue is from leave-on-EPIPE.  This patch fixes the issue,
> I guess.
>
> diff --git a/guix/ui.scm b/guix/ui.scm
> index 6f2d4fe245..507bc67f1d 100644
> --- a/guix/ui.scm
> +++ b/guix/ui.scm
> @@ -2309,7 +2309,7 @@ (define (run-guix . args)
>        ((or ("-h") ("--help"))
>         (leave-on-EPIPE (show-guix-help)))
>        ((or ("-V") ("--version"))
> -       (show-version-and-exit "guix"))
> +       (leave-on-EPIPE (show-version-and-exit "guix")))
>        (((? option? o) args ...)
>         (format (current-error-port)
>                 (G_ "guix: unrecognized option '~a'~%") o)
>
>
> Does it fix the issue?

Yes indeed!  Thanks :)

Clément





reply via email to

[Prev in Thread] Current Thread [Next in Thread]