From a02ad38fb428849545f5ea5746dd58ce55d63476 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 2 Dec 2015 01:01:48 +0000 Subject: [PATCH] Forward each params in %arg{@} separately --- src/command_manager.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/command_manager.cc b/src/command_manager.cc index ad7359b5..cd711c87 100644 --- a/src/command_manager.cc +++ b/src/command_manager.cc @@ -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)); }