Bug #67976 bin/mysqld_safe: test: argument expected
Submitted: 26 Dec 2012 11:13 Modified: 14 Jan 2013 17:00
Reporter: O Allain Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Installing Severity:S1 (Critical)
Version:5.1.67 OS:Any (Solaris 10 (x86 64 bits), Linux)
Assigned to: CPU Architecture:Any
Tags: mysqld_safe, regression

[26 Dec 2012 11:13] O Allain
Description:
When using mysqld_safe (5.1.67), I get an error message :

$> bin/mysqld_safe --user=mysql --datadir=/db/mysql51-data/ --old-passwords&
$> 21226 11:04:47 mysqld_safe Logging to '/db/mysql51-data//notos.enst.fr.err'.
bin/mysqld_safe: test: argument expected

With version 5.1.66, it's OK.

Could try to fix it ?

How to repeat:
Using mysld_safe on Solaris 10 (x86 64 bits)
[26 Dec 2012 18:28] Sveta Smirnova
Thank you for the report.

Verified as described. Workaround: use bash.
[27 Dec 2012 12:16] Nirbhay Choubey
== Workaround ==

As the test switch in question (-e) is supported by bash,
staring mysqld_safe.sh under bash should work.

> which bash
 /usr/bin/bash

> bash ./bin/mysqld_safe [OPTIONS]
[14 Jan 2013 17:00] Paul DuBois
Noted in 5.1.68, 5.5.30, 5.6.11, 5.7.1 changelogs.

mysqld_safe used the nonportable -e test construct.
[25 Jan 2013 19:47] MySQL Verification Team
bug #68183 is a duplicate
[29 Jan 2013 16:17] Evgeny Fritsler
bug http://bugs.mysql.com/?id=68218&edit=2 is a duplicate