Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jan 2013 16:25:10 -0500
From:      Mike Jeays <mike.jeays@rogers.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: [Bulk] Re: sh script ?
Message-ID:  <20130124162510.2fecbd83@europa>
In-Reply-To: <5101A4C6.2050907@a1poweruser.com>
References:  <201301241900.r0OJ0Zck076069@mail.r-bonomi.com> <5101A4C6.2050907@a1poweruser.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 24 Jan 2013 16:16:54 -0500
Fbsd8 <fbsd8@a1poweruser.com> wrote:

> Robert Bonomi wrote:
> >> From owner-freebsd-questions@freebsd.org  Thu Jan 24 12:11:42 2013
> >> Date: Thu, 24 Jan 2013 13:07:40 -0500
> >> From: Fbsd8 <fbsd8@a1poweruser.com>
> >> To: FreeBSD questions <questions@freebsd.org>
> >> Subject: sh script ?
> >>
> >> I get this message [: 10.0.10.21: bad number on this code
> >>
> >>     [ "${saved_ip}" -eq "${used_ip}" ] && echo "good match"
> >>
> >> Both variables have valid ip addresses in them.
> >> Why does it think the variable content is a number and not text?
> > 
> > Why??  BECAUSE YOU TOld IT TO.
> > 
> > RTFM applies.  Specifically 'man test'.
> > 
> > You need to either read some books on BASIC shell programming or
> > take a course or two on that subject.
> > 
> > This may sound harsh, but you will save yourself a -lot- of future
> > aggravation with some structured education.  It will also assist
> > you in getting maximum value from the manpages.
> > 
> > Programming _is_ an art-form.  You have to train yourself to think
> > the way the machine does.  When it complains about 'something', it
> > is *AlMOST*ALWAYS* correct, and something you -think- is correct
> > is actually wrong.  the hard thing to learn in troubleshooting
> > problems is to set aside what you "know" is correct, and look for
> > anything that could possibly cause the complaint.  Remember, you're
> > looking for something "impossible".  <grin>
> > 
> 
> 
> Quit fishing for a flame.
> 
> You know nothing about my background and years of experience.
> I have forgotten more about IT and programming than you will
> ever learn in a life time.
> 
> You already read the 3 other reply posts and there was no need to
> say what you did. You added nothing to the info in the thread.
> The thread was basically ended already.
> 
> This is not the first time you have replied to posts in
> this condescending manner.
> 
> I am putting you on notice, your manner and tone is not acceptable on 
> this list. Please take more time to consider your replies before posting 
> again.
> 
> Any further reply from you about this will be considered as flaming and 
> ignored.
> 
> 
> 
> 
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"

Well said.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130124162510.2fecbd83>