From ff76b2999b0bf3cb3ddc0a62b03eaf4c87a3949b Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sun, 20 Dec 2015 21:58:12 +0100 Subject: [PATCH] random.4: Use modern command substitution syntax in shell session log Reported-by: Walter Harms Signed-off-by: Michael Kerrisk --- man4/random.4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/man4/random.4 b/man4/random.4 index 4a32aacc6..fa9c37171 100644 --- a/man4/random.4 +++ b/man4/random.4 @@ -186,7 +186,7 @@ which is run during the Linux system start-up sequence: fi chmod 600 $random_seed poolfile=/proc/sys/kernel/random/poolsize - [ \-r $poolfile ] && bits=\`cat $poolfile\` || bits=4096 + [ \-r $poolfile ] && bits=$(cat $poolfile) || bits=4096 bytes=$(expr $bits / 8) dd if=/dev/urandom of=$random_seed count=1 bs=$bytes .fi @@ -202,7 +202,7 @@ run during the Linux system shutdown: touch $random_seed chmod 600 $random_seed poolfile=/proc/sys/kernel/random/poolsize - [ \-r $poolfile ] && bits=\`cat $poolfile\` || bits=4096 + [ \-r $poolfile ] && bits=$(cat $poolfile) || bits=4096 bytes=$(expr $bits / 8) dd if=/dev/urandom of=$random_seed count=1 bs=$bytes .fi