why test(1) works with -eq but not -nq ?

Ion-Mihai Tetcu itetcu at apropo.ro
Wed Apr 21 07:35:03 PDT 2004


On Wed, 21 Apr 2004 16:30:44 +0200
Joost Bekkers <joost at jodocus.org> 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"



More information about the freebsd-questions mailing list