Commit 71f9e467 authored by Wayne Davison's avatar Wayne Davison

A slight simplification to the last change.

parent 176e8e94
......@@ -48,7 +48,7 @@ while (<>) {
die "Invalid input line $.:\n$_" unless defined $name;
die "A filename is not properly escaped:\n$_" unless $name =~ /^[^"\\]*(\\(\d\d\d|\D)[^"\\]*)*$/;
my $fn = $name;
$fn =~ s/\\(\d+|[A-Za-z]|.)/ eval "\"\\$1\"" /eg;
$fn =~ s/\\(\d+|.)/ eval "\"\\$1\"" /eg;
if ($type eq '-') {
undef $type unless -f $fn;
} elsif ($type eq 'd') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment