Revision ec77bc78
Von Bernd Bleßmann vor mehr als 6 Jahren hinzugefügt
SL/InstallationCheck.pm | ||
---|---|---|
128 | 128 |
sub classes_from_latex { |
129 | 129 |
my ($path, $class) = @_; |
130 | 130 |
eval { require String::ShellQuote; 1 } or warn "can't load String::ShellQuote" && return; |
131 |
$path = shell_quote $path; |
|
132 |
$class = shell_quote $class; |
|
131 |
$path = String::ShellQuote::shell_quote $path;
|
|
132 |
$class = String::ShellQuote::shell_quote $class;
|
|
133 | 133 |
|
134 | 134 |
open my $pipe, q#egrep -rs '^[\ \t]*# . "$class' $path". q# | sed 's/ //g' | awk -F '{' '{print $2}' | awk -F '}' '{print $1}' |#; |
135 | 135 |
my @cls = <$pipe>; |
scripts/installation_check.pl | ||
---|---|---|
180 | 180 |
my $type_desc = $type eq 'cls' ? 'document class' : 'package'; |
181 | 181 |
|
182 | 182 |
eval { require String::ShellQuote; 1 } or warn "can't load String::ShellQuote" && return; |
183 |
$dw = shell_quote $dw; |
|
184 |
my $e_package = shell_quote $package; |
|
185 |
my $e_type = shell_quote $type; |
|
183 |
$dw = String::ShellQuote::shell_quote $dw;
|
|
184 |
my $e_package = String::ShellQuote::shell_quote $package;
|
|
185 |
my $e_type = String::ShellQuote::shell_quote $type;
|
|
186 | 186 |
|
187 | 187 |
my $exit = system(qq|TEXINPUTS=".:$dw:" kpsewhich $e_package.$e_type > /dev/null|); |
188 | 188 |
my $res = $exit > 0 ? 0 : 1; |
Auch abrufbar als: Unified diff
installation_check: shell_quote mit vorangestelltem Modulnamen aufrufen, …
… sonst wird die subroutine nicht gefunden, wenn mit require eingebunden wird.
Kam im commit 1cff7d8034b00f4fd365a716596b54b798f035d7
"InstallationCheck: String::Shellcode nicht zur compilezeit laden"
rein.