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
|
@ -202,7 +202,7 @@ in
|
||||||
HISTCONTROL = concatStringsSep ":" cfg.historyControl;
|
HISTCONTROL = concatStringsSep ":" cfg.historyControl;
|
||||||
}
|
}
|
||||||
// optionalAttrs (cfg.historyIgnore != []) {
|
// optionalAttrs (cfg.historyIgnore != []) {
|
||||||
HISTIGNORE = concatStringsSep ":" cfg.historyIgnore;
|
HISTIGNORE = escapeShellArg (concatStringsSep ":" cfg.historyIgnore);
|
||||||
}
|
}
|
||||||
));
|
));
|
||||||
in mkIf cfg.enable {
|
in mkIf cfg.enable {
|
||||||
|
|
Loading…
Reference in a new issue