summaryrefslogtreecommitdiff
path: root/mysql-test/lib
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2021-05-11 20:08:40 +0200
committerSergei Golubchik <serg@mariadb.org>2021-05-11 20:08:47 +0200
commitec348f555b674f6af083923cbdd1bb0847b35493 (patch)
tree0c9f42981c6d531c038cad5e2cdc4526cc4e0dc8 /mysql-test/lib
parent3cf57aae9f0b0fa3e20b351477fe24b27d86ec8f (diff)
downloadmariadb-git-ec348f555b674f6af083923cbdd1bb0847b35493.tar.gz
mtr: --gdb mode, also quote ";", not only " "
Diffstat (limited to 'mysql-test/lib')
-rw-r--r--mysql-test/lib/My/Debugger.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysql-test/lib/My/Debugger.pm b/mysql-test/lib/My/Debugger.pm
index 5e04c070e7f..cc151b233d5 100644
--- a/mysql-test/lib/My/Debugger.pm
+++ b/mysql-test/lib/My/Debugger.pm
@@ -139,7 +139,7 @@ sub do_args($$$$$) {
my $v = $debuggers{$k};
# on windows mtr args are quoted (for system), otherwise not (for exec)
- sub quote($) { $_[0] =~ / / ? "\"$_[0]\"" : $_[0] }
+ sub quote($) { $_[0] =~ /[; ]/ ? "\"$_[0]\"" : $_[0] }
sub unquote($) { $_[0] =~ s/^"(.*)"$/$1/; $_[0] }
sub quote_from_mtr($) { IS_WINDOWS() ? $_[0] : quote($_[0]) }
sub unquote_for_mtr($) { IS_WINDOWS() ? $_[0] : unquote($_[0]) }