my $failcount = 0;
for my $src (@ARGV) {
- my ($name, @cmds) = split /:/, $src =~ s/\.(\w+)\z//r;
+ my ($name, @cmds) = split /:(?<!\\:)/, $src =~ s/\.(\w+)\z//r;
my $ext = $1 // '*';
next if $name =~ m/\./;
unless (-e $src) {
($src) = grep {-e} glob qq<"$name"{,:*}.$ext> or next;
}
+ s/\\(.)/$1/g for @cmds;
say $name;
if (@cmds and $cmds[0] =~ /^\d/) {