Third try.. Avoid filenames with spaces in them.

PR:		15937
Pointed out by:	Koga Youichirou <y-koga@jp.FreeBSD.org>
This commit is contained in:
Peter Wemm 2000-01-06 14:27:37 +00:00
parent d5127a856d
commit a519749105

4
etc/rc
View File

@ -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