From owner-freebsd-bugs Thu Jan 6 3:20:13 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 16348155DA for ; Thu, 6 Jan 2000 03:20:03 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id DAA04712; Thu, 6 Jan 2000 03:20:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Date: Thu, 6 Jan 2000 03:20:02 -0800 (PST) Message-Id: <200001061120.DAA04712@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Peter Wemm Subject: Re: conf/15937: vi recover script in /etc/rc still remains unsolved. Reply-To: Peter Wemm Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR conf/15937; it has been noted by GNATS. From: Peter Wemm To: y-koga@jp.FreeBSD.org Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: conf/15937: vi recover script in /etc/rc still remains unsolved. Date: Thu, 06 Jan 2000 19:14:38 +0800 y-koga@jp.FreeBSD.org wrote: > >Description: > About vi recover script in /etc/rc, this problem has been submitted by Mr. Ko jima > and Peter has committed already, but it still remains unsolved. > > Quoting filename(s) does not make sence, because it is splitted by space befo re then. Can you please check a patch along these lines? This stops the split in the first place. Index: rc =================================================================== RCS file: /home/ncvs/src/etc/rc,v retrieving revision 1.207 diff -u -r1.207 rc --- rc 2000/01/05 09:19:27 1.207 +++ rc 2000/01/06 11:13:26 @@ -433,7 +433,7 @@ 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 @@ # 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 Cheers, -Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message