svn commit: r249749 - head/usr.sbin/bsdconfig

Devin Teske dteske at FreeBSD.org
Mon Apr 22 05:32:28 UTC 2013


Author: dteske
Date: Mon Apr 22 05:32:27 2013
New Revision: 249749
URL: http://svnweb.freebsd.org/changeset/base/249749

Log:
  Use new f_getvar for clarity and general code follow-up to r249746.

Modified:
  head/usr.sbin/bsdconfig/bsdconfig

Modified: head/usr.sbin/bsdconfig/bsdconfig
==============================================================================
--- head/usr.sbin/bsdconfig/bsdconfig	Mon Apr 22 05:30:20 2013	(r249748)
+++ head/usr.sbin/bsdconfig/bsdconfig	Mon Apr 22 05:32:27 2013	(r249749)
@@ -312,10 +312,13 @@ while :; do
 	   ;;
 
 	*) # Dynamically loaded menuitem
-	   cmd=$( eval echo \"\$menu_program$mtag\" )
+	   f_getvar menu_program$mtag menu_program
+	   case "$menu_program" in
+	   /*) cmd="$menu_program";;
+	    *) cmd="$BSDCFG_LIBE/$menu_program"
+	   esac
 	   f_dprintf "cmd=[%s]" "$cmd"
 	   $cmd ${USE_XDIALOG:+-X}
-	   ;;
 
 	esac
 done


More information about the svn-src-all mailing list