Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 May 2001 02:36:14 -0700
From:      Kris Kennaway <kris@obsecurity.org>
To:        Harkirat Singh <singh@pdx.edu>
Cc:        questions@FreeBSD.ORG
Subject:   Re: RANDOM - Problem
Message-ID:  <20010517023613.A45689@xor.obsecurity.org>
In-Reply-To: <Pine.GSO.4.31.0105170114400.24725-100000@freke.odin.pdx.edu>; from singh@pdx.edu on Thu, May 17, 2001 at 01:19:20AM -0700
References:  <Pine.GSO.4.31.0105170114400.24725-100000@freke.odin.pdx.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

--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




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