Merge pull request #47984 from 8573/8573/fix/Bash/use-escapeShellArg/1

nixos/bash: Use `escapeShellArg` for shell aliases
This commit is contained in:
Timo Kaufmann 2018-10-06 22:46:16 +02:00 committed by GitHub
commit 683c413118
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,7 @@ let
'';
bashAliases = concatStringsSep "\n" (
mapAttrsFlatten (k: v: "alias ${k}='${v}'") cfg.shellAliases
mapAttrsFlatten (k: v: "alias ${k}=${escapeShellArg v}") cfg.shellAliases
);
in