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.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Ludovic Courtès <ludovic.courtes <at> inria.fr>
Subject: bug#56540: closed (Re: bug#56540: ‘home-bash-service-type’ doesn’t quote environment variables)
Date: Wed, 13 Jul 2022 23:11:02 +0000
[Message part 1 (text/plain, inline)]
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 56540 <at> debbugs.gnu.org.

-- 
56540: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=56540
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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.

[Message part 3 (message/rfc822, inline)]
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’.



This bug report was last modified 3 years and 4 days ago.

Previous Next


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