From owner-freebsd-questions@FreeBSD.ORG Fri Jul 25 15:22:07 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 28C7837B401 for ; Fri, 25 Jul 2003 15:22:07 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D3AE43F93 for ; Fri, 25 Jul 2003 15:22:06 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h6PMM0GI003189; Fri, 25 Jul 2003 17:22:00 -0500 (CDT) (envelope-from dan) Date: Fri, 25 Jul 2003 17:22:00 -0500 From: Dan Nelson To: Peter Rosa Message-ID: <20030725222200.GA2484@dan.emsphone.com> References: <44wue68ebs.fsf@be-well.ilk.org> <033601c352fa$93aa0280$3501a8c0@pro.sk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <033601c352fa$93aa0280$3501a8c0@pro.sk> X-OS: FreeBSD 5.1-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i cc: freebsd-questions Subject: Re: Problem with periodically done scripts X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jul 2003 22:22:07 -0000 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