MAN page from Old RedHat 6.X perl-String-ShellQuote-1.00-6.i386.rpm
ShellQuote
Section: User Contributed Perl Documentation (3)
Updated: perl 5.005, patch 03
Index NAME
String::ShellQuote - quote strings for passing through the shell
SYNOPSIS
$string = shell_quote @list; $string = shell_comment_quote $string;
DESCRIPTION
This module contains some functions which are useful for quoting stringswhich are going to pass through the shell or a shell-like object.
- shell_quote [string]...
- shell_quote quotes strings so they can be passed through the shell.Each string is quoted so that the shell will pass it along as asingle argument and without further interpretation. If no stringsare given an empty string is returned.
- shell_comment_quote [string]
- shell_comment_quote quotes the string so that it can safely beincluded in a shell-style comment (the current algorithm is that a sharpcharacter is placed after any newlines in the string).
This routine might be changed to accept multiple string argumentsin the future. I haven't done this yet because I'm not sure if thestrings should be joined with blanks ($") or nothing ($,). Castyour vote today! Be sure to justify your answer.
EXAMPLES
$cmd = 'fuser 2>/dev/null ' . shell_quote @files; @pids = split ' ', `$cmd`;
print CFG "# Configured by: ", shell_comment_quote($ENV{LOGNAME}), "\n"; AUTHOR
Roderick Schertler <
roderickAATTargon.org>
SEE ALSO
perl(1).
Index
- NAME
- SYNOPSIS
- DESCRIPTION
- EXAMPLES
- AUTHOR
- SEE ALSO
This document was created byman2html,using the manual pages.