[arch-projects] [PATCH 3/3] use $() instead of `` for command substitutions
Dave Reisner
d at falconindy.com
Thu Jun 2 10:33:32 EDT 2011
Signed-off-by: Dave Reisner <d at falconindy.com>
---
rc.multi | 2 +-
rc.single | 2 +-
rc.sysinit | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/rc.multi b/rc.multi
index d8bf126..60bb835 100755
--- a/rc.multi
+++ b/rc.multi
@@ -27,7 +27,7 @@ fi
run_hook multi_end
/bin/touch /var/log/boot
-kill `/bin/cat /run/bootlogd.pid`
+kill $(/bin/cat /run/bootlogd.pid)
/bin/rm /run/bootlogd.pid
# vim: set ts=2 sw=2 noet:
diff --git a/rc.single b/rc.single
index d1191d2..92b8f53 100755
--- a/rc.single
+++ b/rc.single
@@ -49,7 +49,7 @@ if [[ $RUNLEVEL = 1 ]]; then
fi
/bin/touch /var/log/boot
-kill `/bin/cat /run/bootlogd.pid`
+kill $(/bin/cat /run/bootlogd.pid)
/bin/rm /run/bootlogd.pid
# End of file
diff --git a/rc.sysinit b/rc.sysinit
index dbc15ba..629d9a5 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -194,7 +194,7 @@ if [[ -f /etc/crypttab && -n $CS ]] && /bin/grep -q ^[^#] /etc/crypttab; then
/bin/dd if=${ckdev} of=${ckfile} bs=1 skip=${cka} count=${ckb} >/dev/null 2>&1;;
esac
$CS -d ${ckfile} $4 $open "$a" "$b" >/dev/null
- /bin/dd if=/dev/urandom of=${ckfile} bs=1 count=`stat -c %s ${ckfile}` conv=notrunc >/dev/null 2>&1
+ /bin/dd if=/dev/urandom of=${ckfile} bs=1 count=$(stat -c %s ${ckfile}) conv=notrunc >/dev/null 2>&1
rm ${ckfile};;
/*)
$CS -d "$3" $4 $open "$a" "$b" >/dev/null;;
--
1.7.5.2
More information about the arch-projects
mailing list