From df771e22fd389e0df65827dd3b54792a354c240b Mon Sep 17 00:00:00 2001 From: Juerd Waalboer Date: Mon, 7 Sep 2020 02:27:25 +0200 Subject: [PATCH] Fix bug where follow-up prompt of second command would split on whitespace Bug: > 2x unlisted 6 Please provide a short description: bar foo foo: No such product, user, or command. Fixed: > 2x unlisted 6 Please provide a short description: bar foo Pending: 2x { 6.00 bar foo } Enter username to pay 12.00; type 'abort' to abort. --- revbank | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/revbank b/revbank index 8371526..f25400a 100755 --- a/revbank +++ b/revbank @@ -185,7 +185,6 @@ OUTER: for (;;) { length $input or redo PROMPT; @words = ($split_input ? split(" ", $input) : $input); - $split_input = 0; # Only split 'outer' input. } WORD: for (;;) { @@ -194,6 +193,7 @@ OUTER: for (;;) { my $word = shift @words; push @retry, $word; + $split_input = 0; # Only split 'outer' input. PLUGIN: for my $plugin (@plugins) { my ($rv, @rvargs) = eval { $plugin->$method($cart, $word) };