aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/functions
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-02-19 17:38:19 +0000
committerBill Nottingham <notting@redhat.com>2001-02-19 17:38:19 +0000
commite69e3b4565d8ae5870e11ef3265940d4b27c052f (patch)
tree15f29d836d6d0c570b3de9dc602498db6ab4b9c1 /rc.d/init.d/functions
parent3a7f4f5f7decb87bcae8f711cb9879bbe44967ca (diff)
downloadinitscripts-e69e3b4565d8ae5870e11ef3265940d4b27c052f.tar
initscripts-e69e3b4565d8ae5870e11ef3265940d4b27c052f.tar.gz
initscripts-e69e3b4565d8ae5870e11ef3265940d4b27c052f.tar.bz2
initscripts-e69e3b4565d8ae5870e11ef3265940d4b27c052f.tar.xz
initscripts-e69e3b4565d8ae5870e11ef3265940d4b27c052f.zip
fix some ## substitutions to be correct
Diffstat (limited to 'rc.d/init.d/functions')
-rwxr-xr-xrc.d/init.d/functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index ffed07c0..82d34418 100755
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -218,7 +218,7 @@ pidfileofproc() {
if [ -f /var/run/${base}.pid ] ; then
read pid < /var/run/${base}.pid
for p in $line ; do
- [ -z "$p##[0-9]}" -a -d /proc/$p ] && pid="$pid $p"
+ [ -z "${p//[0-9]/}" -a -d /proc/$p ] && pid="$pid $p"
done
if [ -n "$pid" ] ; then
echo $pid
@@ -242,7 +242,7 @@ pidofproc() {
local line p pid=
read line < /var/run/${base}.pid
for p in $line ; do
- [ -z "$p##[0-9]}" -a -d /proc/$p ] && pid="$pid $p"
+ [ -z "${p//[0-9]/}" -a -d /proc/$p ] && pid="$pid $p"
done
if [ -n "$pid" ] ; then
echo $pid