mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
home: environment-variables: Fix escaping.
* gnu/home/services.scm (environment-variable-shell-definitions): Fix escaping. * tests/guix-home.sh: Add STRING_WITH_ESCAPES environment variable and test its value. Reported-by: elevnkb
This commit is contained in:
parent
2acce55a00
commit
35ecbb418c
2 changed files with 6 additions and 3 deletions
|
@ -192,7 +192,7 @@ ensures variable values are properly quoted."
|
|||
(list->string (string-fold-right
|
||||
(lambda (chr lst)
|
||||
(if (memq chr quoted-chars)
|
||||
(append (list chr #\\) lst)
|
||||
(append (list #\\ chr) lst)
|
||||
(cons chr lst)))
|
||||
'()
|
||||
value))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue