‘home-bash-service-type’ doesn’ t quote environment variables
(address . bug-guix@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:
Toggle snippet (8 lines)
(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:
Toggle snippet (4 lines)
$ tail -1 $(guix build /gnu/store/maz98q1skyc7md2vknkg8ima3y2bq5yr-bash_profile.drv)
export PS1=\u@\h \wλ
Ludo’.