unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: 56540-done@debbugs.gnu.org
Subject: bug#56540: ‘home-bash-service-type’ doesn’t quote environment variables
Date: Thu, 14 Jul 2022 01:10:11 +0200	[thread overview]
Message-ID: <87zghc8v8s.fsf@gnu.org> (raw)
In-Reply-To: <87a69d9inh.fsf@inria.fr> ("Ludovic Courtès"'s message of "Wed, 13 Jul 2022 16:44:34 +0200")

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.




      reply	other threads:[~2022-07-13 23:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zghc8v8s.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=56540-done@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).