if [ -f /var/run/${base}.pid ]; then
local line p
read line < /var/run/${base}.pid
for p in $line ; do
[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
done
fi
这一行: [ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
Syntax error: Bad substitution