mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
another variant (bug #2185: mysql.server script echo bug)
This commit is contained in:
@@ -60,11 +60,9 @@ export PATH
|
||||
mode=$1 # start or stop
|
||||
|
||||
case `echo "testing\c"`,`echo -n testing` in
|
||||
*c,*) echo_n=-n echo_c= ;;
|
||||
*,-n*) echo_n= echo_c='\c' ;;
|
||||
*) echo_n= echo_c='
|
||||
'
|
||||
;;
|
||||
*c*,-n*) echo_n= echo_c='
|
||||
';;
|
||||
*c*,*) echo_n=-n echo_c= ;;
|
||||
*) echo_n= echo_c='\c';;
|
||||
esac
|
||||
|
||||
@@ -177,7 +175,7 @@ case "$mode" in
|
||||
|
||||
sleep 1
|
||||
while [ -s $pid_file -a "$flags" != aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa ]
|
||||
[ -z "$flags" ] && echo $echo_n "Wait for mysqld to exit$echo_c" || echo $echo_n ".echo_c"
|
||||
do
|
||||
[ -z "$flags" ] && echo $echo_n "Wait for mysqld to exit$echo_c" || echo $echo_n ".$echo_c"
|
||||
flags=a$flags
|
||||
sleep 1
|
||||
|
||||
Reference in New Issue
Block a user