Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Jan 2000 03:20:02 -0800 (PST)
From:      Peter Wemm <peter@netplex.com.au>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: conf/15937: vi recover script in /etc/rc still remains unsolved. 
Message-ID:  <200001061120.DAA04712@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR conf/15937; it has been noted by GNATS.

From: Peter Wemm <peter@netplex.com.au>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001061120.DAA04712>