Commit e4bde991 authored by ram@gw.mysql.r18.ru's avatar ram@gw.mysql.r18.ru

another variant (bug #2185: mysql.server script echo bug)

parent d75674a5
...@@ -60,11 +60,9 @@ export PATH ...@@ -60,11 +60,9 @@ export PATH
mode=$1 # start or stop mode=$1 # start or stop
case `echo "testing\c"`,`echo -n testing` in case `echo "testing\c"`,`echo -n testing` in
*c,*) echo_n=-n echo_c= ;; *c*,-n*) echo_n= echo_c=' ';;
*,-n*) echo_n= echo_c='\c' ;; *c*,*) echo_n=-n echo_c= ;;
*) echo_n= echo_c=' *) echo_n= echo_c='\c';;
'
;;
esac esac
parse_arguments() { parse_arguments() {
...@@ -177,7 +175,7 @@ case "$mode" in ...@@ -177,7 +175,7 @@ case "$mode" in
sleep 1 sleep 1
while [ -s $pid_file -a "$flags" != aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa ] while [ -s $pid_file -a "$flags" != aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa ]
do do
[ -z "$flags" ] && echo $echo_n "Wait for mysqld to exit$echo_c" || echo $echo_n ".echo_c" [ -z "$flags" ] && echo $echo_n "Wait for mysqld to exit$echo_c" || echo $echo_n ".$echo_c"
flags=a$flags flags=a$flags
sleep 1 sleep 1
done done
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment