ShellQuote::Any::Tiny - Escape string for the Unix/Windows shell
This document describes version 0.007 of ShellQuote::Any::Tiny (from Perl distribution ShellQuote-Any-Tiny), released on 2017-09-20.
use ShellQuote::Any::Tiny qw(shell_quote);
my $cmd = 'echo ' . shell_quote("hello world");
# On Windows, $cmd becomes 'echo "hello world"'.
# On Unix, $cmd becomes q(echo 'hello world').
This module tries to quote command-line argument when passed to shell (either Unix shells or Windows) using as little code as possible. For more proper quoting, see See Also section.
Please visit the project's homepage at https://metacpan.org/release/ShellQuote-Any-Tiny.
Source repository is at https://github.com/perlancar/perl-ShellQuote-Any-Tiny.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=ShellQuote-Any-Tiny
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
String::ShellQuote for Unix shells
Win32::ShellQuote for Windows shells
This software is copyright (c) 2017, 2016 by firstname.lastname@example.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install ShellQuote::Any::Tiny, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.