mirror of
https://github.com/nix-community/home-manager
synced 2024-12-20 08:49:47 +01:00
bash: escape historyIgnore value
Since this option is very unlikely to contain a shell variable we should be safe doing a full shell escaping. Fixes #3249
This commit is contained in:
parent
0f8bf4f92e
commit
eb9ff9556d
1 changed files with 1 additions and 1 deletions
|
@ -202,7 +202,7 @@ in
|
|||
HISTCONTROL = concatStringsSep ":" cfg.historyControl;
|
||||
}
|
||||
// optionalAttrs (cfg.historyIgnore != []) {
|
||||
HISTIGNORE = concatStringsSep ":" cfg.historyIgnore;
|
||||
HISTIGNORE = escapeShellArg (concatStringsSep ":" cfg.historyIgnore);
|
||||
}
|
||||
));
|
||||
in mkIf cfg.enable {
|
||||
|
|
Loading…
Reference in a new issue