mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 04:27:20 +02:00
TW-1656: Implicitly parenthesize argv filter
- Thanks to Daniel Shahaf.
This commit is contained in:
parent
c4d797539d
commit
c59afe34c4
5 changed files with 118 additions and 22 deletions
|
@ -344,7 +344,7 @@ int CmdCalendar::execute (std::string& output)
|
|||
// calendar --> taskendar
|
||||
|
||||
// If the executable was "cal" or equivalent, replace it with "task".
|
||||
std::string executable = context.cli2._original_args[0];
|
||||
std::string executable = context.cli2._original_args[0].attribute ("raw");
|
||||
auto cal = executable.find ("cal");
|
||||
if (cal != std::string::npos)
|
||||
executable = executable.substr (0, cal) + PACKAGE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue