Skip to content
Permalink
Browse files
mtr: --gdb mode, also quote ";", not only " "
  • Loading branch information
vuvova committed May 11, 2021
1 parent 3cf57aa commit ec348f5
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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]) }

0 comments on commit ec348f5

Please sign in to comment.