unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: "Clément Lassieur" <clement@lassieur.org>
To: Simon Tournier <zimon.toutoune@gmail.com>
Cc: 66254@debbugs.gnu.org
Subject: bug#66254: "guix --version | head -1" crashes most of the time
Date: Thu, 12 Oct 2023 10:58:17 +0200	[thread overview]
Message-ID: <87pm1k6wuu.fsf@lassieur.org> (raw)
In-Reply-To: <86v8bcdc65.fsf@gmail.com> (Simon Tournier's message of "Thu, 12 Oct 2023 00:30:58 +0200")

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	other threads:[~2023-10-12  8:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-28 10:20 bug#66254: "guix --version | head -1" crashes most of the time Clément Lassieur
2023-10-11 22:30 ` Simon Tournier
2023-10-12  8:58   ` Clément Lassieur [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pm1k6wuu.fsf@lassieur.org \
    --to=clement@lassieur.org \
    --cc=66254@debbugs.gnu.org \
    --cc=zimon.toutoune@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).