We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3bffd42 + 32d6db3 commit 6f460adCopy full SHA for 6f460ad
1 file changed
scripts/mysqld_multi.sh
@@ -1,6 +1,6 @@
1
#!/usr/bin/perl
2
3
-# Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
4
#
5
# This program is free software; you can redistribute it and/or
6
# modify it under the terms of the GNU Library General Public
@@ -687,7 +687,11 @@ sub my_which
687
my ($command) = @_;
688
my (@paths, $path);
689
690
- return $command if (-f $command && -x $command);
+ # If the argument is not 'my_print_defaults' then it would be of the format
691
+ # <absolute_path>/<program>
692
+ return $command if ($command ne 'my_print_defaults' && -f $command &&
693
+ -x $command);
694
+
695
@paths = split(':', $ENV{'PATH'});
696
foreach $path (@paths)
697
{
0 commit comments