Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Jul 2003 17:22:00 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Peter Rosa <prosa@pro.sk>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: Problem with periodically done scripts
Message-ID:  <20030725222200.GA2484@dan.emsphone.com>
In-Reply-To: <033601c352fa$93aa0280$3501a8c0@pro.sk>
References:  <44wue68ebs.fsf@be-well.ilk.org> <033601c352fa$93aa0280$3501a8c0@pro.sk>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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