emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#56540: closed (‘home-bash-service-type’ doesn’t quote environment va


From: GNU bug Tracking System
Subject: bug#56540: closed (‘home-bash-service-type’ doesn’t quote environment variables)
Date: Wed, 13 Jul 2022 23:11:02 +0000

Your message dated Thu, 14 Jul 2022 01:10:11 +0200
with message-id <87zghc8v8s.fsf@gnu.org>
and subject line Re: bug#56540: ‘home-bash-service-type’ doesn’t quote 
environment variables
has caused the debbugs.gnu.org bug report #56540,
regarding ‘home-bash-service-type’ doesn’t quote environment variables
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
56540: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=56540
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: ‘home-bash-service-type’ doesn’t quote environment variables Date: Wed, 13 Jul 2022 16:44:34 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux)
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’.



--- End Message ---
--- Begin Message --- Subject: Re: bug#56540: ‘home-bash-service-type’ doesn’t quote environment variables Date: Thu, 14 Jul 2022 01:10:11 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux)
Ludovic Courtès <ludovic.courtes@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.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]