[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problem with "test" utility
From: |
Brian Owen |
Subject: |
Problem with "test" utility |
Date: |
Sat, 31 Mar 2001 16:28:48 -0000 |
Hello,
I'm having a problem with the "test" utility.
I'm using Red Hat Linux v6.1 (Cartman) - Kernel 2.2.12-20 which I installed
not long ago.
I've been typing in some simple shell scripts (inspired by Linux Programming
for Dummies) to compare 2 numeric variables - equals, greater than, less
than etc etc.
Whatever I do, it's giving me the wrong answer - $? is equal to 1 when it
should be 0, and vice versa.
Any suggestions ?
Many thanks
Brian Owen
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Problem with "test" utility,
Brian Owen <=