Skip to content

Commit

Permalink
Change function for Win32
Browse files Browse the repository at this point in the history
  • Loading branch information
bayashi committed Aug 3, 2019
1 parent f03c396 commit 3e4ab3d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/ShellQuote/Any.pm
Expand Up @@ -53,7 +53,7 @@ sub _require {

sub _win32_quote {
my ($cmd) = @_;
Win32::ShellQuote::cmd_escape(join ' ', @$cmd);
Win32::ShellQuote::quote_system_string(join ' ', @$cmd);
}

sub _bourne_quote {
Expand Down Expand Up @@ -97,6 +97,8 @@ ShellQuote::Any escapes strings for the shell on Linux, UNIX or MSWin32.
If this method was called without C<$os>, then C<\@cmd> escapes for current OS. C<$os> supports C<MSWin32> or C<Bourne>.
NOTE that if you would execute a result of C<shell_quote>, it should be without redirection, especially Win32.
=head1 REPOSITORY
Expand Down

0 comments on commit 3e4ab3d

Please sign in to comment.