1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 11:36:05 +01:00

lib/zsh: revert escapeShellArg in toZshValue

Causes variables to be generated with single ticks breaking shell
expansion.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
Austin Horstman 2025-09-28 14:38:55 -05:00
parent 64a809b198
commit 2b03dc82bb
4 changed files with 15 additions and 5 deletions

View file

@ -7,7 +7,7 @@ rec {
if builtins.isBool v then
if v then "true" else "false"
else if builtins.isString v then
lib.escapeShellArg v
''"${v}"''
else if builtins.isList v then
let
shell = import ./shell.nix { inherit lib; };