Subject: rcvar don't display dollar sign
To: tech-userlevel@NetBSD.org, <lukem@NetBSD.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-userlevel
Date: 06/28/2005 00:04:24
Can we have rc.subr not print a dollar sign with rcvar output?

I notice it is confusing to some students in some of my (FreeBSD) classes.

Is it needed?

--- etc/rc.subr	12 Oct 2004 14:45:29 -0000	1.65
+++ etc/rc.subr	28 Jun 2005 07:00:10 -0000
@@ -64,7 +64,7 @@
 		return 1
 		;;
 	*)
-		warn "\$${1} is not set properly - see ${rcvar_manpage}."
+		warn "${1} is not set properly - see ${rcvar_manpage}."
 		return 1
 		;;
 	esac
@@ -671,9 +671,9 @@
 			echo "# $name"
 			if [ -n "$rcvar" ]; then
 				if checkyesno ${rcvar}; then
-					echo "\$${rcvar}=YES"
+					echo "${rcvar}=YES"
 				else
-					echo "\$${rcvar}=NO"
+					echo "${rcvar}=NO"
 				fi
 			fi
 			;;

If okay, I will also look for any documentation we host and fix it too
(at least for -current). And if okay, is this something that can be pulled
up?


 Jeremy C. Reed

 	  	 	 BSD News, BSD tutorials, BSD links
	  	 	 http://www.bsdnewsletter.com/