3
0
mirror of https://github.com/pragma-/pbot.git synced 2025-02-21 07:50:43 +01:00

Interpreter: minor corrections to split_line

This commit is contained in:
Pragmatic Software 2019-05-28 11:56:06 -07:00
parent e287887765
commit b04015286c

View File

@ -364,6 +364,7 @@ sub split_line {
$i = $pos; $i = $pos;
$ignore_quote = 1; $ignore_quote = 1;
$quote = undef; $quote = undef;
$last_ch = ' ';
$token = ''; $token = '';
} else { } else {
# add final token and exit # add final token and exit
@ -375,7 +376,7 @@ sub split_line {
$ch = $chars[$i++]; $ch = $chars[$i++];
if ($escaped) { if ($escaped) {
$token .= $ch; $token .= "\\$ch";
$escaped = 0; $escaped = 0;
next; next;
} }