svn commit: r243636 - head/usr.sbin/bsdconfig/share
Devin Teske
dteske at FreeBSD.org
Tue Nov 27 22:14:23 UTC 2012
Author: dteske
Date: Tue Nov 27 22:14:22 2012
New Revision: 243636
URL: http://svnweb.freebsd.org/changeset/base/243636
Log:
Allow setting of NULL titles with f_dialog_[back]title().
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 Tue Nov 27 22:11:53 2012 (r243635)
+++ head/usr.sbin/bsdconfig/share/dialog.subr Tue Nov 27 22:14:22 2012 (r243636)
@@ -92,7 +92,7 @@ f_dialog_title()
{
local new_title="$1"
- if [ "$new_title" ]; then
+ if [ "${1+set}" ]; then
if [ "$USE_XDIALOG" ]; then
_DIALOG_BACKTITLE="$DIALOG_BACKTITLE"
DIALOG_BACKTITLE="$new_title"
@@ -133,7 +133,7 @@ f_dialog_backtitle()
{
local new_backtitle="$1"
- if [ "$new_backtitle" ]; then
+ if [ "${1+set}" ]; then
if [ "$USE_XDIALOG" ]; then
_DIALOG_TITLE="$DIALOG_TITLE"
DIALOG_TITLE="$new_backtitle"
More information about the svn-src-head
mailing list