Unescape string after doing var replacement

Fix #426
This commit is contained in:
Mikkel Oscar Lyderik 2016-01-08 23:16:57 +01:00
parent e2d49afb4a
commit cb8ac7fd4a

View File

@ -2462,6 +2462,7 @@ struct cmd_results *config_command(char *exec, enum cmd_status block) {
// Var replacement, for all but first argument of set
for (i = handler->handle == cmd_set ? 2 : 1; i < argc; ++i) {
argv[i] = do_var_replacement(argv[i]);
unescape_string(argv[i]);
}
/* Strip quotes for first argument.
* TODO This part needs to be handled much better */