Problem with periodically done scripts

Peter Rosa prosa at pro.sk
Fri Jul 25 15:31:29 PDT 2003


And what's wrong on [ 0 -gt 0 -a -lt 0].


Peter



----- Original Message -----
From: "Dan Nelson" <dnelson at allantgroup.com>
To: "Peter Rosa" <prosa at pro.sk>
Cc: "freebsd-questions" <freebsd-questions at 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 at allantgroup.com
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"freebsd-questions-unsubscribe at freebsd.org"
>



More information about the freebsd-questions mailing list