3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-29 23:39:24 +01:00

Single-quotes now behave as expected for parse_arguments()

This commit is contained in:
Pragmatic Software 2017-08-23 19:16:32 -07:00
parent 98a061b232
commit 23c2c3d84e

View File

@ -123,6 +123,7 @@ sub interpreter {
sub parse_arguments { sub parse_arguments {
my ($self, $arguments) = @_; my ($self, $arguments) = @_;
$arguments =~ s/(?<!\\)'/\\'/g;
return shellwords($arguments); return shellwords($arguments);
} }