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>
(cherry picked from commit a10ee925ae6bb272afc4599ff4ddf44ef0bc4bb9)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 9ee336c94c486f544199d17bc0e883ac2403bc7b)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 40a71caf5b95ebd30adc1d75192f7d6c0bb361fa)
Signed-off-by: Amaury Denoyelle <adenoyelle@haproxy.com>
1 file changed