diff options
author | peter <peter@FreeBSD.org> | 2000-01-06 14:27:37 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2000-01-06 14:27:37 +0000 |
commit | a0a8eee5b3e9c166e76654c5b8ee0964abab8c93 (patch) | |
tree | 43418bd0d89984f2b6be929c17920051b9e2d360 /etc/rc | |
parent | 65fe2b0cb90bef103340fd85e4b329aea0c495e8 (diff) | |
download | FreeBSD-src-a0a8eee5b3e9c166e76654c5b8ee0964abab8c93.zip FreeBSD-src-a0a8eee5b3e9c166e76654c5b8ee0964abab8c93.tar.gz |
Third try.. Avoid filenames with spaces in them.
PR: 15937
Pointed out by: Koga Youichirou <y-koga@jp.FreeBSD.org>
Diffstat (limited to 'etc/rc')
-rw-r--r-- | etc/rc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |