From 35ecbb418c03e3957ebab87af921742466fe2de9 Mon Sep 17 00:00:00 2001 From: Andrew Tropin Date: Mon, 9 Jan 2023 12:22:56 +0400 Subject: 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 --- gnu/home/services.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnu/home') diff --git a/gnu/home/services.scm b/gnu/home/services.scm index c442da374c..b17a34d19d 100644 --- a/gnu/home/services.scm +++ b/gnu/home/services.scm @@ -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)))) -- cgit 1.4.1