MINOR: cli: Remove useless loop on commands to find unescaped semi-colon

This loop was added to detect pipelined commands when only co_getline() was
used to get commands. Now, co_getdelim() is used and the semi-colon is also
considered as a command delimiter.

As side effet, the last semi-colon, if any, is no longer replaced by a
newline. Thus, we must take care to adapt the test to detect partial
commands.

(cherry picked from commit e018e8a4195845eb13fced1b6590bf1283bb375c)
[cf: backported to ease the next backport]
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 61cb75aca0c761ef68c1032edded0f0904b79fb0)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
1 file changed