ShellQuote::Any::PERLANCAR - Escape strings for the shell on Unix or MSWin32
This document describes version 0.003 of ShellQuote::Any::PERLANCAR (from Perl distribution ShellQuote-Any-PERLANCAR), released on 2020-03-10.
use ShellQuote::Any; # exports shell_quote() shell_quote('curl', 'http://example.com/?foo=123&bar=baz'); # curl 'http://example.com/?foo=123&bar=baz'
This distribution is currently For testing only.
Quote command @cmd according to OS. On Windows, will use Win32::ShellQuote's quote_system_string(). Otherwise, will use String::ShellQuote's shell_quote(). Exported by default.
@cmd
quote_system_string()
shell_quote()
If you want to simulate how quoting is done under another OS, you could do something like:
{ local $^O = "Win32"; # simulate Windows say shell_quote("foo bar"); }
Please visit the project's homepage at https://metacpan.org/release/ShellQuote-Any-PERLANCAR.
Source repository is at https://github.com/perlancar/perl-ShellQuote-Any-PERLANCAR.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=ShellQuote-Any-PERLANCAR
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.
ShellQuote::Any which currently uses Win32::ShellQuote's cmd_escape instead of quote_system_string(). See also: discussion on https://github.com/bayashi/ShellQuote-Any/issues/2.
cmd_escape
ShellQuote::Any::Tiny
Win32::ShellQuote
String::ShellQuote
perlancar <perlancar@cpan.org>
This software is copyright (c) 2020, 2016 by perlancar@cpan.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::PERLANCAR, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ShellQuote::Any::PERLANCAR
CPAN shell
perl -MCPAN -e shell install ShellQuote::Any::PERLANCAR
For more information on module installation, please visit the detailed CPAN module installation guide.