From 7fef51eb801453c7550e1b3ca8959274517e45cf Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Wed, 21 Mar 2018 17:45:31 -0700 Subject: [PATCH] midichannels.pl: support indented commands --- misc/tools/midichannels.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/tools/midichannels.pl b/misc/tools/midichannels.pl index 4f47b9fd..0223e82a 100755 --- a/misc/tools/midichannels.pl +++ b/misc/tools/midichannels.pl @@ -60,7 +60,7 @@ for(@others) while() { chomp; - my @arg = split /\s+/, $_; + my @arg = grep { $_ ne '' } split /\s+/, $_; my $cmd = shift @arg; print "Executing: $cmd @arg\n"; if($cmd eq '#') -- 2.39.2