Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jul 2020 13:44:55 +0000 (UTC)
From:      Allan Jude <allanjude@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r363142 - head/libexec/rc/rc.d
Message-ID:  <202007131344.06DDit0E051694@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: allanjude
Date: Mon Jul 13 13:44:54 2020
New Revision: 363142
URL: https://svnweb.freebsd.org/changeset/base/363142

Log:
  Remove excess spaces from rc.d scripts
  
  The space between words is already being echoed by the space between quoted strings:
  
      % echo 'foo' 'bar'
      foo bar
  
      % echo 'foo' ' baz'
      foo  baz
  
  Found in `ipfw` and `mountlate` messages.
  
  PR:		247948
  Submitted by:	Jose Luis Duran <jlduran@gmail.com>
  MFC after:	2 weeks
  Sponsored by:	Klara Inc.

Modified:
  head/libexec/rc/rc.d/ipfw
  head/libexec/rc/rc.d/mountlate

Modified: head/libexec/rc/rc.d/ipfw
==============================================================================
--- head/libexec/rc/rc.d/ipfw	Mon Jul 13 13:35:36 2020	(r363141)
+++ head/libexec/rc/rc.d/ipfw	Mon Jul 13 13:44:54 2020	(r363142)
@@ -63,7 +63,7 @@ ipfw_start()
 		echo 'Firewall rules loaded.'
 	elif [ "`ipfw list 65535`" = "65535 deny ip from any to any" ]; then
 		echo 'Warning: kernel has firewall functionality, but' \
-		    ' firewall rules are not enabled.'
+		    'firewall rules are not enabled.'
 		echo '           All ip services are disabled.'
 	fi
 

Modified: head/libexec/rc/rc.d/mountlate
==============================================================================
--- head/libexec/rc/rc.d/mountlate	Mon Jul 13 13:35:36 2020	(r363141)
+++ head/libexec/rc/rc.d/mountlate	Mon Jul 13 13:44:54 2020	(r363142)
@@ -32,7 +32,7 @@ mountlate_start()
 		;;
 	*)
 		echo 'Mounting /etc/fstab filesystems failed,' \
-		    ' startup aborted'
+		    'startup aborted'
 		stop_boot true
 		;;
 	esac



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