Date: Sat, 26 Jul 2003 00:30:50 +0200 From: "Peter Rosa" <prosa@pro.sk> To: "Dan Nelson" <dnelson@allantgroup.com> Cc: freebsd-questions <freebsd-questions@freebsd.org> Subject: Re: Problem with periodically done scripts Message-ID: <037d01c352fc$67001240$3501a8c0@pro.sk> References: <44wue68ebs.fsf@be-well.ilk.org><033601c352fa$93aa0280$3501a8c0@pro.sk> <20030725222200.GA2484@dan.emsphone.com>
next in thread | previous in thread | raw e-mail | index | archive | help
And what's wrong on [ 0 -gt 0 -a -lt 0]. Peter ----- Original Message ----- From: "Dan Nelson" <dnelson@allantgroup.com> To: "Peter Rosa" <prosa@pro.sk> Cc: "freebsd-questions" <freebsd-questions@freebsd.org> Sent: Saturday, July 26, 2003 12:22 AM Subject: Re: Problem with periodically done scripts > In the last episode (Jul 26), Peter Rosa said: > > Dear Gilbert, > > > > I have replaced wc with make install from /usr/src/usr.bin/wc and now it > > works. Up now wc -l gave no results, now it give proper number. > > > > Could you, please, explain the following line: [ $n -gt 0 -a $rc -lt 1 ] ??? > > Why are there [] ? When I write it at prompt as > > [0 -gt 0 -a - lt 0] it writes [: 0: unexpected operator, but > > [0 -gt 0 -a -lt ] writes nothing. > > [ is another way to run the "test" command. "man test" for more info. > > -- > Dan Nelson > dnelson@allantgroup.com > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?037d01c352fc$67001240$3501a8c0>