replace non-portable use of echo -n with printf

Patch by Eric Evans; reviewed by Michael Greene for CASSANDRA-278

git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@792206 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Eric Evans 2009-07-08 16:08:01 +00:00
parent 1f09fbae03
commit e0d97d21fc
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ launch_service()
else
exec java $JVM_OPTS $cassandra_parms -cp $CLASSPATH \
org.apache.cassandra.service.CassandraDaemon <&- &
[ ! -z $pidpath ] && echo -n $! > $pidpath
[ ! -z $pidpath ] && printf "%d" $! > $pidpath
fi
return $?