On Mon, 16 Feb 2004, David Kempe wrote:
Phil Scarratt wrote:
if test $ERRORNUM -ge 1; then
which i think does the same thing.
You know, I think I found the answer digging on google groups.
I think my variable has a newline character at the end - I just need to strip it using sed I spose.
problem probably solved (after I figure out sed)
thanks
dave
Yes...that'd do it. bash can't interpret newline as a arithmetic expression of any sort.
Fil -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html