unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#56540: ‘home-bash-service-type’ doesn’t quote environment variables
@ 2022-07-13 14:44 Ludovic Courtès
  2022-07-13 23:10 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Ludovic Courtès @ 2022-07-13 14:44 UTC (permalink / raw)
  To: 56540

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




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-13 23:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-13 14:44 bug#56540: ‘home-bash-service-type’ doesn’t quote environment variables Ludovic Courtès
2022-07-13 23:10 ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).