GNU bug report logs - #40369
guix environment messed up shell

Previous Next

Package: guix;

Reported by: Alexandru-Sergiu Marton <brown121407 <at> member.fsf.org>

Date: Wed, 1 Apr 2020 10:37:02 UTC

Severity: normal

Tags: notabug

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 40369 in the body.
You can then email your comments to 40369 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#40369; Package guix. (Wed, 01 Apr 2020 10:37:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Alexandru-Sergiu Marton <brown121407 <at> member.fsf.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 01 Apr 2020 10:37:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Alexandru-Sergiu Marton" <brown121407 <at> posteo.ro>
To: <bug-guix <at> gnu.org>
Subject: guix environment messed up shell
Date: Wed, 01 Apr 2020 13:03:42 +0300
[Message part 1 (text/plain, inline)]
Hi,

Whenever I run `guix environment <package>`, the shell I get has
problems when I write commands that span multiple lines. The most basic
glitch is that when I get to the end of the first line, the next
characters end up at the beginning of the same line, overwriting
everything I wrote so far. One of the wilder scenarios is the one where
each new character is added on a new line, _on top_ of the one I'm
currently writing.

Steps to reproduce:
1. $ guix environment neovim
2. Write stuff that is longer than a single line.

I attached a screenshot for the first situation. You can see how the
text has overwritten my prompt.

Cheers,
--
Alexandru-Sergiu Marton <brown121407 <at> member.fsf.org>
https://brown.121407.xyz
[guix-env.png (image/png, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#40369; Package guix. (Thu, 02 Apr 2020 10:35:02 GMT) Full text and rfc822 format available.

Message #8 received at 40369 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: "Alexandru-Sergiu Marton" <brown121407 <at> posteo.ro>
Cc: Alexandru-Sergiu Marton <brown121407 <at> member.fsf.org>, 40369 <at> debbugs.gnu.org
Subject: Re: bug#40369: guix environment messed up shell
Date: Thu, 02 Apr 2020 12:34:42 +0200
Hi,

"Alexandru-Sergiu Marton" <brown121407 <at> posteo.ro> skribis:

> Whenever I run `guix environment <package>`, the shell I get has
> problems when I write commands that span multiple lines. The most basic
> glitch is that when I get to the end of the first line, the next
> characters end up at the beginning of the same line, overwriting
> everything I wrote so far. One of the wilder scenarios is the one where
> each new character is added on a new line, _on top_ of the one I'm
> currently writing.
>
> Steps to reproduce:
> 1. $ guix environment neovim
> 2. Write stuff that is longer than a single line.

What shell do you use?

Could you check if this is somehow due to PS1?  For instance run:

  guix environment neovim
  export PS1='\u\$ '
  write a loooong line

Thanks in advance,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#40369; Package guix. (Thu, 02 Apr 2020 11:20:02 GMT) Full text and rfc822 format available.

Message #11 received at 40369 <at> debbugs.gnu.org (full text, mbox):

From: "Alexandru-Sergiu Marton" <brown121407 <at> posteo.ro>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: Alexandru-Sergiu Marton <brown121407 <at> member.fsf.org>, 40369 <at> debbugs.gnu.org
Subject: Re: bug#40369: guix environment messed up shell
Date: Thu, 02 Apr 2020 14:03:04 +0300
> What shell do you use?

bash

> Could you check if this is somehow due to PS1? For instance run:
>
> guix environment neovim
> export PS1='\u\$ '
> write a loooong line

That fixed it, so it isn't a Guix bug. Thanks a lot!

It was something wrong with how I set the colors with tput that only
manifested when I entered an environment cause that appends a colored
"[env]" to my PS1.




Information forwarded to bug-guix <at> gnu.org:
bug#40369; Package guix. (Thu, 02 Apr 2020 16:40:01 GMT) Full text and rfc822 format available.

Message #14 received at 40369 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: "Alexandru-Sergiu Marton" <brown121407 <at> posteo.ro>
Cc: Alexandru-Sergiu Marton <brown121407 <at> member.fsf.org>, 40369 <at> debbugs.gnu.org
Subject: Re: bug#40369: guix environment messed up shell
Date: Thu, 02 Apr 2020 18:39:03 +0200
"Alexandru-Sergiu Marton" <brown121407 <at> posteo.ro> skribis:

>> What shell do you use?
>
> bash
>
>> Could you check if this is somehow due to PS1? For instance run:
>>
>> guix environment neovim
>> export PS1='\u\$ '
>> write a loooong line
>
> That fixed it, so it isn't a Guix bug. Thanks a lot!
>
> It was something wrong with how I set the colors with tput that only
> manifested when I entered an environment cause that appends a colored
> "[env]" to my PS1.

Cool, thanks for letting us know!

Ludo’.




Added tag(s) notabug. Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 02 Apr 2020 16:40:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 40369 <at> debbugs.gnu.org and Alexandru-Sergiu Marton <brown121407 <at> member.fsf.org> Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 02 Apr 2020 16:40:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 01 May 2020 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 46 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.