cmd_continue: message argument truncated to only last word #225
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
When calling
cmd_continue issue_ref message, the message gets truncated to only the last word because of incorrectforloop syntax.Root Cause
In
kugetsu-session.shline 431:The unquoted
$argsundergoes word splitting, socreate a PR for https://...becomes separate words and only the last word ends up inmessage.Example
Input:
cmd_continue git.fbrns.co/shoko/kugetsu#166 "create a PR for https://git.fbrns.co/shoko/kugetsu/issues/166"Expected message:
create a PR for https://git.fbrns.co/shoko/kugetsu/issues/166Actual message:
https://git.fbrns.co/shoko/kugetsu/issues/166Fix
Change
for arg in $argstofor arg in "${args[@]}":