--- rc.dist Wed Jan 5 16:09:07 2000 +++ rc Thu Jan 6 20:52:18 2000 @@ -347,16 +347,16 @@ vibackup=`echo /var/tmp/vi.recover/vi.*` if [ "$vibackup" != '/var/tmp/vi.recover/vi.*' ]; then echo 'Recovering vi editor sessions' - for i in $vibackup; do + for i in /var/tmp/vi.recover/vi.*; do # Only test files that are readable. - if test ! -r $i; then + if test ! -r "$i"; then continue fi # Unmodified nvi editor backup files either have the # execute bit set or are zero length. Delete them. - if test -x $i -o ! -s $i; then - rm -f $i + if test -x "$i" -o ! -s "$i"; then + rm -f "$i" fi done @@ -364,9 +364,9 @@ # crashes at the right time. virecovery=`echo /var/tmp/vi.recover/recover.*` if [ "$virecovery" != "/var/tmp/vi.recover/recover.*" ]; then - for i in $virecovery; do + for i in /var/tmp/vi.recover/recover.*; do # Only test files that are readable. - if test ! -r $i; then + if test ! -r "$i"; then continue fi @@ -375,9 +375,9 @@ # Else send mail to the user. recfile=`awk '/^X-vi-recover-path:/{print $2}' < $i` if test -n "$recfile" -a -s "$recfile"; then - sendmail -t < $i + sendmail -t < "$i" else - rm -f $i + rm -f "$i" fi done fi