1CPAN::HandleConfig(3) User Contributed Perl DocumentationCPAN::HandleConfig(3)
2
3
4

NAME

6       CPAN::HandleConfig - internal configuration handling for CPAN.pm
7
8   "CLASS->safe_quote ITEM"
9       Quotes an item to become safe against spaces in shell interpolation. An
10       item is enclosed in double quotes if:
11
12         - the item contains spaces in the middle
13         - the item does not start with a quote
14
15       This happens to avoid shell interpolation problems when whitespace is
16       present in directory names.
17
18       This method uses "commands_quote" to determine the correct quote. If
19       "commands_quote" is a space, no quoting will take place.
20
21       if it starts and ends with the same quote character: leave it as it is
22
23       if it contains no whitespace: leave it as it is
24
25       if it contains whitespace, then
26
27       if it contains quotes: better leave it as it is
28
29       else: quote it with the correct quote type for the box we're on
30

LICENSE

32       This program is free software; you can redistribute it and/or modify it
33       under the same terms as Perl itself.
34
35
36
37perl v5.34.0                      2021-07-22             CPAN::HandleConfig(3)
Impressum