bin/102184: the -n switch of the test command does not work

Florian Meister florian.meister at medienhaus.at
Thu Aug 17 13:50:23 UTC 2006


The following reply was made to PR bin/102184; it has been noted by GNATS.

From: Florian Meister <florian.meister at medienhaus.at>
To: Maxim Konovalov <maxim at macomnet.ru>
Cc: bug-followup at freebsd.org
Subject: Re: bin/102184: the -n switch of the test command does not work
Date: Thu, 17 Aug 2006 15:42:51 +0200

 okay :) - thanks for you help.
 
 Maxim Konovalov wrote:
 > On Thu, 17 Aug 2006, 15:35+0200, Florian Meister wrote:
 > 
 >> hi maxim,
 >>
 >>>> set testvar="lala" ; [ -n "$testvar" ] ; echo $? ; echo $testvar
 >>> 0
 >>> lala
 >>>> set testvar="" ; [ -n "$testvar" ] ; echo $? ; echo $testvar
 >>> 1
 >> okay I see, but then there is a bug in the /etc/rc.d/jail script at
 >> line 167:
 >>
 >> --snip--
 >> if [ -n ${jail_interface} ]; then
 >>    ifconfig ${jail_interface} alias ${jail_ip} netmask 255.255.255.255
 >> fi
 > 
 > That was already fixed in HEAD and RELENG_6.
 > 
 > Do any other problems with -n flag remain?  Can I close the PR?
 > 


More information about the freebsd-bugs mailing list