Forward each params in %arg{@} separately

This commit is contained in:
Maxime Coste 2015-12-02 01:01:48 +00:00
parent 63d9218fbe
commit a02ad38fb4

View File

@ -479,6 +479,9 @@ void CommandManager::execute(StringView command_line,
it -= shell_tokens.size() + 1;
}
else if (it->type() == Token::Type::ArgExpand and it->content() == '@')
std::copy(shell_context.params.begin(), shell_context.params.end(),
std::back_inserter(params));
else
params.push_back(expand_token(*it, context, shell_context));
}