Subject: bug#56540: closed (Re: bug#56540: ‘home-bash-service-type’ doesn’t quote environment variables)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 13 Jul 2022 23:11:02 +0000

Your bug report

#56540: ‘home-bash-service-type’ doesn’t quote environment variables

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
56540: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=56540
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#56540: ‘home-bash-service-type’ doesn’t quote environment variables
From: Ludovic Courtès <[email-masked]>
To: [email-masked]
Date: Thu, 14 Jul 2022 01:10:11 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Ludovic Courtès <[email-masked]> 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.

Subject: ‘home-bash-service-type’ doesn’t quote environment variables
From: Ludovic Courtès <[email-masked]>
To: [email-masked]
Date: Wed, 13 Jul 2022 16:44:34 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

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’.