Date: Sun, 10 Oct 2010 17:46:56 -0700 From: Devin Teske <dteske@vicor.com> To: Garance A Drosihn <drosih@rpi.edu> Cc: "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org> Subject: Re: sysrc -- a sysctl(8)-like utility for managing /etc/rc.conf et. al. Message-ID: <12CA8898-95C0-465E-9560-F7184D126903@vicor.com> In-Reply-To: <4CB25198.4020209@rpi.edu> 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> <4CB14E2D.3070806@freebsd.org> <663E0B47-9318-4C75-BAEB-5C4F9EAFFDD1@vicor.com> <4CB25198.4020209@rpi.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Oct 10, 2010, at 4:51 PM, Garance A Drosihn <drosih@rpi.edu> wrote: > The latter does not cause an error. Try it: > > # [ "-n" = x ] ; echo $? > 1 > > # [ -e = "no" ] ; echo $? > 1 > > # [ -e = -n ] ; echo $? > 1 1 is error. 0 is success. -- Devin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?12CA8898-95C0-465E-9560-F7184D126903>