svn commit: r256323 - head/usr.sbin/bsdconfig/share

Devin Teske dteske at FreeBSD.org
Fri Oct 11 18:14:50 UTC 2013


Author: dteske
Date: Fri Oct 11 18:14:49 2013
New Revision: 256323
URL: http://svnweb.freebsd.org/changeset/base/256323

Log:
  Add a USE_DIALOG global (analogous to USE_XDIALOG); useful for inserting
  text into a prompt or command syntax iff dialog(1) is in-use.
  
  Approved by:	re (glebius)

Modified:
  head/usr.sbin/bsdconfig/share/dialog.subr

Modified: head/usr.sbin/bsdconfig/share/dialog.subr
==============================================================================
--- head/usr.sbin/bsdconfig/share/dialog.subr	Fri Oct 11 17:54:22 2013	(r256322)
+++ head/usr.sbin/bsdconfig/share/dialog.subr	Fri Oct 11 18:14:49 2013	(r256323)
@@ -2044,6 +2044,7 @@ f_dialog_menutag2index_with_help()
 f_dialog_init()
 {
 	DIALOG_SELF_INITIALIZE=
+	USE_DIALOG=1
 
 	#
 	# Clone terminal stdout so we can redirect to it from within sub-shells
@@ -2087,7 +2088,7 @@ f_dialog_init()
 	#
 	# Process `-X' command-line option
 	#
-	[ "$USE_XDIALOG" ] && DIALOG=Xdialog
+	[ "$USE_XDIALOG" ] && DIALOG=Xdialog USE_DIALOG=
 
 	#
 	# Sanity check, or die gracefully


More information about the svn-src-head mailing list