line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Command::Runner::Quote; |
2
|
10
|
|
|
10
|
|
60
|
use strict; |
|
10
|
|
|
|
|
20
|
|
|
10
|
|
|
|
|
249
|
|
3
|
10
|
|
|
10
|
|
37
|
use warnings; |
|
10
|
|
|
|
|
20
|
|
|
10
|
|
|
|
|
196
|
|
4
|
|
|
|
|
|
|
|
5
|
10
|
|
|
10
|
|
3975
|
use Win32::ShellQuote (); |
|
10
|
|
|
|
|
13873
|
|
|
10
|
|
|
|
|
207
|
|
6
|
10
|
|
|
10
|
|
4732
|
use String::ShellQuote (); |
|
10
|
|
|
|
|
7392
|
|
|
10
|
|
|
|
|
247
|
|
7
|
|
|
|
|
|
|
|
8
|
10
|
|
|
10
|
|
61
|
use Exporter 'import'; |
|
10
|
|
|
|
|
16
|
|
|
10
|
|
|
|
|
1438
|
|
9
|
|
|
|
|
|
|
our @EXPORT_OK = qw(quote quote_win32 quote_unix); |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub quote_win32 { |
12
|
0
|
|
|
0
|
0
|
|
my $str = shift; |
13
|
0
|
|
|
|
|
|
Win32::ShellQuote::quote_literal($str, 1); |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub quote_unix { |
17
|
0
|
|
|
0
|
0
|
|
my $str = shift; |
18
|
0
|
|
|
|
|
|
String::ShellQuote::shell_quote_best_effort($str); |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
if ($^O eq 'MSWin32') { |
22
|
|
|
|
|
|
|
*quote = \"e_win32; |
23
|
|
|
|
|
|
|
} else { |
24
|
|
|
|
|
|
|
*quote = \"e_unix; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |