GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  CPAN::HANDLECONFIG (3)

.ds Aq ’

NAME

CPAN::HandleConfig - internal configuration handling for CPAN.pm

CWCLASS->safe_quote ITEM

Quotes an item to become safe against spaces in shell interpolation. An item is enclosed in double quotes if:



  - the item contains spaces in the middle
  - the item does not start with a quote



This happens to avoid shell interpolation problems when whitespace is present in directory names.

This method uses commands_quote to determine the correct quote. If commands_quote is a space, no quoting will take place.

if it starts and ends with the same quote character: leave it as it is

if it contains no whitespace: leave it as it is

if it contains whitespace, then

if it contains quotes: better leave it as it is

else: quote it with the correct quote type for the box we’re on

CONTENTS

LICENSE

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.22.1 CPAN::HANDLECONFIG (3) 2015-10-17

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.