On Mon, Jan 16, 2017 at 04:28:52PM +0000, Debarshi Ray wrote: > On Thu, Jan 12, 2017 at 12:26:31AM +0100, Fabiano Fid??ncio wrote: > > +if [ -n <xsl:value-of select="config/reg-login"/> -a -n <xsl:value-of select="config/reg-password"/> ]; then > > We need to enclose the strings in quotes because [ -n -a -n ] will > evaluate to TRUE. Try these: > $ if [ -n ]; then echo foo; fi > foo > $ if [ -n "" ]; then echo foo; fi > $ For reference: http://tldp.org/LDP/abs/html/comparison-ops.html _______________________________________________ Libosinfo mailing list Libosinfo@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libosinfo