diff options
author | unknown <joerg@mysql.com> | 2006-06-08 14:52:33 +0200 |
---|---|---|
committer | unknown <joerg@mysql.com> | 2006-06-08 14:52:33 +0200 |
commit | d0d69b76769129b29f8bd1bd29156118acd2c48c (patch) | |
tree | 7e84301913abf59460c229d4733a620a361f2575 /mysql-test/mysql-test-run.pl | |
parent | ddd9fbacc61315812b4ac5f07eb4f1bd69e9811c (diff) | |
download | mariadb-git-d0d69b76769129b29f8bd1bd29156118acd2c48c.tar.gz |
mysql-test/mysql-test-run.pl : A fix for bug#20303 "mysql-test-run.pl: Does not recognize -- argument"
mysql-test/mysql-test-run.pl:
A fix for bug#20303 "mysql-test-run.pl: Does not recognize -- argument":
Due to the use of 'pass_through' in option processing this lone '--' will remain
as an argument, it must be ignored explicitly.
Diffstat (limited to 'mysql-test/mysql-test-run.pl')
-rwxr-xr-x | mysql-test/mysql-test-run.pl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index 4e0020b79a2..2399911cff3 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -610,6 +610,12 @@ sub command_line_setup () { { push(@opt_extra_mysqld_opt, $arg); } + elsif ( $arg =~ /^--$/ ) + { + # It is an effect of setting 'pass_through' in option processing + # that the lone '--' separating options from arguments survives, + # simply ignore it. + } elsif ( $arg =~ /^-/ ) { usage("Invalid option \"$arg\""); |