[KLUG Members] scripting question
Mike Morrett
members@kalamazoolinux.org
Wed, 29 May 2002 11:46:10 +0000
Using BASH from www.cygwin.com (under W2K)...
bash --version
GNU bash, version 2.05a.0(3)-release (i686-pc-cygwin)
Copyright 2001 Free Software Foundation, Inc.
Your script works just fine.
Mike
On Tue, 28 May 2002 21:11:45 -0700 (PDT), "Rusty Yonkers"
<therustycook@yahoo.com> said:
> Ok ... now most of you will be thinking .... "well duh" ... but I am
> not a scripting guru. So I pose my most simple question most humbly
> and hope that the reverberations of laughter do not create an
> earthquake.
>
> I am trying to get a piece of scripting to work for an evaluation
> using test but it is not evaluating correctly. The portion of the
> script that is not working is
>
> echo -n "Enter a number: "
>
> read value
>
> if [ $value = 1 ]
>
> then
> echo "You have entered 1"
> else
> echo "You have not entered 1"
> echo "You have entered $value"
> fi
>
> The problem is that the test always responds with a false results!
> Aaaaaagggghhhh!
>
> Any idea what I am doing wrong?
>
> TIA
>
>
> =====
> Truth is truth ... no matter what I think...
> -----------------------------------------
> Department of Redundancy Department
> -----------------------------------------
> Devoted RedHat fan...
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
> _______________________________________________
> Members mailing list
> Members@kalamazoolinux.org
>
>
--
No cream, no sugar, and death before decaf!