From owner-freebsd-questions@FreeBSD.ORG Wed Apr 21 07:30:49 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 E08A016A4CE for ; Wed, 21 Apr 2004 07:30:49 -0700 (PDT) Received: from bps.jodocus.org (g157016.upc-g.chello.nl [80.57.157.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 04A1743D1D for ; Wed, 21 Apr 2004 07:30:49 -0700 (PDT) (envelope-from joost@jodocus.org) Received: from jodocus.org (localhost [127.0.0.1]) by bps.jodocus.org (8.12.10/8.12.10) with ESMTP id i3LEUiwt054168; Wed, 21 Apr 2004 16:30:44 +0200 (CEST) (envelope-from joost@jodocus.org) Received: (from joost@localhost) by jodocus.org (8.12.10/8.12.10/Submit) id i3LEUicN054167; Wed, 21 Apr 2004 16:30:44 +0200 (CEST) (envelope-from joost) Date: Wed, 21 Apr 2004 16:30:44 +0200 From: Joost Bekkers To: Ion-Mihai Tetcu Message-ID: <20040421143044.GA54104@bps.jodocus.org> Mail-Followup-To: Joost Bekkers , Ion-Mihai Tetcu , freebsd-questions@freebsd.org References: <20040421170914.5a5204a3@it.buh.cameradicommercio.ro> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040421170914.5a5204a3@it.buh.cameradicommercio.ro> User-Agent: Mutt/1.4.2.1i 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:30:50 -0000 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 -- greetz Joost joost@jodocus.org