From a519749105033b67585a1e3c7d4e30bd2bf845fa Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Thu, 6 Jan 2000 14:27:37 +0000 Subject: [PATCH] Third try.. Avoid filenames with spaces in them. PR: 15937 Pointed out by: Koga Youichirou --- etc/rc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/rc b/etc/rc index 50607d57c34e..33ed91a4595d 100644 --- a/etc/rc +++ b/etc/rc @@ -433,7 +433,7 @@ find /var/tmp/vi.recover ! -type f -a ! -type d -delete 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 [ ! -r "${i}" ]; then continue @@ -450,7 +450,7 @@ if [ "${vibackup}" != '/var/tmp/vi.recover/vi.*' ]; then # 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 [ ! -r "${i}" ]; then continue