From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <428AFA1B.2060505@vzljot.ru> Date: Wed, 18 May 2005 12:17:31 +0400 From: Vitaly Ostanin User-Agent: Mozilla Thunderbird 1.0 (X11/20050202) X-Accept-Language: ru-ru, ru MIME-Version: 1.0 To: community@altlinux.ru References: <42896D0F.10902@ngs.ru> <1116308502.2998.3.camel@yuk.home.int> <4289ADEF.6030600@ngs.ru> <200505172244.07591.mak@cea.ru> <428AD691.7080102@ngs.ru> In-Reply-To: <428AD691.7080102@ngs.ru> X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig7923B1C0443CA53CF78B642F" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at vzljot.ru Subject: [Comm] Re: bash question X-BeenThere: community@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: community@altlinux.ru List-Id: Mailing list for ALT Linux users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 May 2005 08:17:33 -0000 Archived-At: List-Archive: List-Post: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig7923B1C0443CA53CF78B642F Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 8bit Denis G. Samsonenko пишет: >>[ $VAR -gt 1 -a $VAR -lt 99 ] && echo "переменная равна числу в промежутке от >>1 до 99 (невключительно)" > > Так не пойдёт в виду следующего: > > [denis@cys denis]$ VAR="a"; [ $VAR -gt 1 -a $VAR -lt 99 ] && echo "yes" > bash: [: a: integer expression expected Попробуйте сравнивать числа с помощью expr -- Regards, Vyt mailto: vyt@vzljot.ru JID: vyt@vzljot.ru --------------enig7923B1C0443CA53CF78B642F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCivobXQgvvSRg+k4RAuBvAJ9sAtDybeubP6bE1E8F/JAJ9p6N6wCgmkBN 5Q9i0BRZgdMcJg2WMh2XPrw= =WEiy -----END PGP SIGNATURE----- --------------enig7923B1C0443CA53CF78B642F--