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

Devin Teske dteske at FreeBSD.org
Fri Oct 26 01:48:00 UTC 2012


Author: dteske
Date: Fri Oct 26 01:47:59 2012
New Revision: 242115
URL: http://svn.freebsd.org/changeset/base/242115

Log:
  Tighten-up displays that use a NULL prompt (e.g., networking and usermgmt).
  
  Approved by:	adrian (co-mentor) (implicit)

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 26 00:46:09 2012	(r242114)
+++ head/usr.sbin/bsdconfig/share/dialog.subr	Fri Oct 26 01:47:59 2012	(r242115)
@@ -272,7 +272,7 @@ f_dialog_infobox_size()
 	#
 	# Set height based on number of rows in prompt
 	#
-	height=$( echo "$prompt" | f_number_of_lines )
+	height=$( echo -n "$prompt" | f_number_of_lines )
 	height=$(( $height + 2 ))
 
 	#


More information about the svn-src-head mailing list