From owner-freebsd-questions@FreeBSD.ORG Wed Apr 21 07:35:02 2004 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 EEFCA16A4CE for ; Wed, 21 Apr 2004 07:35:02 -0700 (PDT) Received: from smtp.rdsnet.ro (smtp.rdsnet.ro [62.231.74.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD35543D1D for ; Wed, 21 Apr 2004 07:35:01 -0700 (PDT) (envelope-from itetcu@apropo.ro) Received: (qmail 25166 invoked by uid 89); 21 Apr 2004 14:31:15 -0000 Received: from unknown (HELO rdsnet.ro) (62.231.74.131) by 0 with SMTP; 21 Apr 2004 14:31:15 -0000 Received: (qmail 17354 invoked from network); 21 Apr 2004 14:35:01 -0000 Received: from unknown (HELO buh.cameradicommercio.ro) (81.196.25.19) by mail.rdsnet.ro with SMTP; 21 Apr 2004 14:35:01 -0000 Received: from it.buh.cameradicommercio.ro (it.buh.cameradicommercio.ro [192.168.0.10]) by buh.cameradicommercio.ro (Postfix) with ESMTP id 069F361B5; Wed, 21 Apr 2004 17:34:32 +0300 (EEST) Received: from localhost (localhost.buh.cameradicommercio.ro [127.0.0.1]) by it.buh.cameradicommercio.ro (Postfix) with ESMTP id EDEE12B8; Wed, 21 Apr 2004 17:38:39 +0300 (EEST) Received: from it.buh.cameradicommercio.ro ([127.0.0.1])port 10024) with ESMTP id 98667-02; Wed, 21 Apr 2004 17:38:39 +0300 (EEST) Received: from it.buh.cameradicommercio.ro (localhost.buh.cameradicommercio.ro [127.0.0.1]) by it.buh.cameradicommercio.ro (Postfix) with SMTP id 78A0519B; Wed, 21 Apr 2004 17:38:39 +0300 (EEST) Date: Wed, 21 Apr 2004 17:38:39 +0300 From: Ion-Mihai Tetcu To: Joost Bekkers Message-Id: <20040421173839.740e6e24@it.buh.cameradicommercio.ro> In-Reply-To: <20040421143044.GA54104@bps.jodocus.org> References: <20040421170914.5a5204a3@it.buh.cameradicommercio.ro> <20040421143044.GA54104@bps.jodocus.org> X-Mailer: Sylpheed version 0.9.10claws (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at it.buh.cameradicommercio.ro cc: freebsd-questions@freebsd.org Subject: Re: why test(1) works with -eq but not -nq ? 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: Wed, 21 Apr 2004 14:35:03 -0000 On Wed, 21 Apr 2004 16:30:44 +0200 Joost Bekkers wrote: > On Wed, Apr 21, 2004 at 05:09:14PM +0300, Ion-Mihai Tetcu wrote: > > # if [ "`cat ports_sup_log | wc -l`" -nq "3" ]; then echo 'da'; fi > > I think you mean -ne instead of -nq Duh, thanks. -- IOnut Unregistered ;) FreeBSD "user"