GNU bug report logs - #56540
‘home-bash-service-type’ doesn’t quote environment variables

Previous Next

Package: guix;

Reported by: Ludovic Courtès <ludovic.courtes <at> inria.fr>

Date: Wed, 13 Jul 2022 14:45:02 UTC

Severity: important

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 56540 in the body.
You can then email your comments to 56540 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#56540; Package guix. (Wed, 13 Jul 2022 14:45:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ludovic Courtès <ludovic.courtes <at> inria.fr>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 13 Jul 2022 14:45:02 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludovic.courtes <at> inria.fr>
To: bug-guix <at> gnu.org
Subject: ‘home-bash-service-type’ doesn’t quote environment variables
Date: Wed, 13 Jul 2022 16:44:34 +0200
Similar to <https://issues.guix.gnu.org/54469>, ‘home-bash-service-type’
doesn’t quote environment variables.  For example, if you add this
service:

--8<---------------cut here---------------start------------->8---
(define bash-fancy-prompt-service
  (simple-service 'bash-fancy-prompt
                  home-bash-service-type
                  (home-bash-extension
                   (environment-variables
                    '(("PS1" . "\\u@\\h \\wλ "))))))
--8<---------------cut here---------------end--------------->8---

… you end up with invalid shell code:

--8<---------------cut here---------------start------------->8---
$ tail -1 $(guix build /gnu/store/maz98q1skyc7md2vknkg8ima3y2bq5yr-bash_profile.drv)
export PS1=\u@\h \wλ 
--8<---------------cut here---------------end--------------->8---

Ludo’.




Severity set to 'important' from 'normal' Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 13 Jul 2022 15:17:01 GMT) Full text and rfc822 format available.

Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Wed, 13 Jul 2022 23:11:02 GMT) Full text and rfc822 format available.

Notification sent to Ludovic Courtès <ludovic.courtes <at> inria.fr>:
bug acknowledged by developer. (Wed, 13 Jul 2022 23:11:02 GMT) Full text and rfc822 format available.

Message #12 received at 56540-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: 56540-done <at> debbugs.gnu.org
Subject: Re: bug#56540: ‘home-bash-service-type’ doesn’t quote environment variables
Date: Thu, 14 Jul 2022 01:10:11 +0200
Ludovic Courtès <ludovic.courtes <at> inria.fr> skribis:

> Similar to <https://issues.guix.gnu.org/54469>, ‘home-bash-service-type’
> doesn’t quote environment variables.  For example, if you add this
> service:
>
> (define bash-fancy-prompt-service
>   (simple-service 'bash-fancy-prompt
>                   home-bash-service-type
>                   (home-bash-extension
>                    (environment-variables
>                     '(("PS1" . "\\u@\\h \\wλ "))))))
>
>
> … you end up with invalid shell code:
>
> $ tail -1 $(guix build /gnu/store/maz98q1skyc7md2vknkg8ima3y2bq5yr-bash_profile.drv)
> export PS1=\u@\h \wλ 

Fixed in 8af749224fd69daee5b67295186c77becb1a4479.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 11 Aug 2022 11:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 251 days ago.

Previous Next


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