From owner-freebsd-questions@FreeBSD.ORG Thu Jan 24 21:25:17 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id AE26853B for ; Thu, 24 Jan 2013 21:25:17 +0000 (UTC) (envelope-from mike.jeays@rogers.com) Received: from nm7.access.bullet.mail.mud.yahoo.com (nm7.access.bullet.mail.mud.yahoo.com [66.94.237.208]) by mx1.freebsd.org (Postfix) with ESMTP id 2ED59810 for ; Thu, 24 Jan 2013 21:25:16 +0000 (UTC) Received: from [66.94.237.192] by nm7.access.bullet.mail.mud.yahoo.com with NNFMP; 24 Jan 2013 21:25:16 -0000 Received: from [98.139.221.70] by tm3.access.bullet.mail.mud.yahoo.com with NNFMP; 24 Jan 2013 21:25:16 -0000 Received: from [127.0.0.1] by smtp107.rog.mail.bf1.yahoo.com with NNFMP; 24 Jan 2013 21:25:16 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rogers.com; s=s1024; t=1359062716; bh=foEa0ps/TKExapTPkNITqjcmz8ETiScjAeb688xp4QA=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Date:From:To:Subject:Message-ID:In-Reply-To:References:X-Mailer:Mime-Version:Content-Type:Content-Transfer-Encoding; b=QR+Z70sbY0qzMnhdlDD97RFHCqSHrpMo6M517xqEsCyA20jo8ihnNzJg6d2ANURRRj269o38cFw8+E0sqdjrbUbvB54l2G3qScNcS6ti5N5DxxHJkjBtyXa40N2pGgYnKvt8S/dCp5qYfoa8JmkF2oPeycjzAgJHYS/AN22Qi4U= X-Yahoo-Newman-Id: 263578.21479.bm@smtp107.rog.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: vYf2KrIVM1mtXUKsdIEFXt.fAu5plNDS76F3e6KZL4kWXTG 5IIROXUrDnwA.IerF.xRCmeWjKJRmtxZ.ovuOV3NzbsnhWNPKDtmnlhjlPDn teq5aOJ8acK1TvXQG52fZmBd1XSr8a2VxUZ70sLr5X28tYvjLzAbpdYQwT_3 .ixHSYC0_DxyAnFiql400_A3jh6oapGKgdm7vrK6yIq9702bnjNZbZi0.AS2 TlXdeuxLQWLQgTD_3bu2InX.Xah12AmXWYyl_EZ2UlHr_ROaQpb0AYHwRqze k6Vdx..vcQCaN0KmHQFoeI5xCyojKQezeD2u99jwcM.qkqV6g6pRGtgJ5Xk0 cp6CqblOs3oZOZYzyotcpUkkj4LZX.dnMCAwwhbQ7FVZiurbs5GrOB3Hoi0c NB7kO6dc6JUU2nLkmB7U5AEV93b.Y0AMsMAs2N9GjPoV2luU5fUkPM_uxBJs s3qsIPRCxLJTp7I4n7P2x1KbhldFbQmL9kfXawvHPSc2zT3linFYx9DVK3fu Wrm336R0HPLtp2SfCsfdgtuI- X-Yahoo-SMTP: N82WFx6swBBjwcHWPFR2CGt6udzA8RPrA.xm0enFFXaK2g-- Received: from europa (mike.jeays@173.33.93.170 with login) by smtp107.rog.mail.bf1.yahoo.com with SMTP; 24 Jan 2013 13:25:16 -0800 PST Date: Thu, 24 Jan 2013 16:25:10 -0500 From: Mike Jeays 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> X-Mailer: Claws Mail 3.7.8 (GTK+ 2.24.4; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jan 2013 21:25:17 -0000 On Thu, 24 Jan 2013 16:16:54 -0500 Fbsd8 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 > >> To: FreeBSD questions > >> 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". > > > > > 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.