Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Oct 2010 08:56:55 +0200
From:      Daniel Braniss <danny@cs.huji.ac.il>
To:        Julian Elischer <julian@freebsd.org>
Cc:        Brandon Gooch <jamesbrandongooch@gmail.com>, freebsd-hackers@freebsd.org, Devin Teske <dteske@vicor.com>, Garrett Cooper <gcooper@freebsd.org>
Subject:   Re: sysrc -- a sysctl(8)-like utility for managing /etc/rc.conf et. al.
Message-ID:  <E1P4pq3-000CSR-QS@kabab.cs.huji.ac.il>
In-Reply-To: <4CB14FD5.9090505@freebsd.org> 
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> <4CB14FD5.9090505@freebsd.org>

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"

but grasshopper, in Version 6 there was no test(1), hence the x$1 = 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?E1P4pq3-000CSR-QS>