Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 Oct 2010 22:32:05 -0700
From:      Julian Elischer <julian@freebsd.org>
To:        Garrett Cooper <gcooper@freebsd.org>
Cc:        Brandon Gooch <jamesbrandongooch@gmail.com>, freebsd-hackers@freebsd.org, Devin Teske <dteske@vicor.com>
Subject:   Re: sysrc -- a sysctl(8)-like utility for managing /etc/rc.conf et. al.
Message-ID:  <4CB14FD5.9090505@freebsd.org>
In-Reply-To: <AANLkTinCxd9aDbr7GifEdeOpdcW4d%2B4ZcQWF0TK_mC=8@mail.gmail.com>
References:  <1286397912.27308.40.camel@localhost.localdomain>	<AANLkTikoohMo5ng-RM3tctTH__P6cqhQpm=FPhSE9mMg@mail.gmail.com>	<51B4504F-5AA4-47C5-BF23-FA51DE5BC8C8@vicor.com>	<AANLkTim=BLkd229vdEst8U0ugpq3UsHPxjZZp2qaJxH-@mail.gmail.com>	<238E0B24-AA12-4684-9651-84DA665BE893@vicor.com> <AANLkTinCxd9aDbr7GifEdeOpdcW4d%2B4ZcQWF0TK_mC=8@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
  On 10/9/10 7:30 PM, Garrett Cooper wrote:
>
>> [ "..." ] is the same thing as [ -n "..." ] or test -n "..."
>> [ ! "..." ] is the same things as [ -z "..." ] or test -z "..."
>> I'll never understand why people have to throw an extra letter in there and
>> then compare it to that letter.
> I ran into issues using ! on Solaris ksh recently (not using test),
> and I agree that your example below is more straightforward and
> readable than the other examples I've dealt with in the past.


Ah that reminds me for the reason for "X$foo" = "X"

it's in case $foo evaluates to "-n" or similar...

It's been a long time... but these days a data misevaluation leads to 
such things ad  SQL injection attacks
and I see no reason that a shell injection attack shouldn't be possible.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4CB14FD5.9090505>