From owner-freebsd-questions Thu May 17 2:36:18 2001 Delivered-To: freebsd-questions@freebsd.org Received: from obsecurity.dyndns.org (adsl-63-207-60-32.dsl.lsan03.pacbell.net [63.207.60.32]) by hub.freebsd.org (Postfix) with ESMTP id 1E83F37B422 for ; Thu, 17 May 2001 02:36:15 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 439B366D87; Thu, 17 May 2001 02:36:14 -0700 (PDT) Date: Thu, 17 May 2001 02:36:14 -0700 From: Kris Kennaway To: Harkirat Singh Cc: questions@FreeBSD.ORG Subject: Re: RANDOM - Problem Message-ID: <20010517023613.A45689@xor.obsecurity.org> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="bg08WKrSYDhXBjb5" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from singh@pdx.edu on Thu, May 17, 2001 at 01:19:20AM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --bg08WKrSYDhXBjb5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 17, 2001 at 01:19:20AM -0700, Harkirat Singh wrote: >=20 > Hello: >=20 > I have small question, I have a bash shell and if I type echo > $RANDOM then I get the proper integer. Now if I write a small test script > (test.sh) like: >=20 > #!/bin/bash >=20 > number=3D$RANDOM >=20 > echo $number >=20 > then on shell if I say >=20 > >sh test.sh >=20 > Then I do'nt see any output?? I feel it strange!! sh !=3D bash Kris --bg08WKrSYDhXBjb5 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.5 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7A5uNWry0BWjoQKURAlx+AJ91azGwkrC52TWf9GmjzMjm4c4JuACgg+Eg /IOP9Xht3Unpq1Q2Rc5uPmk= =oZOY -----END PGP SIGNATURE----- --bg08WKrSYDhXBjb5-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message