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
[-- Attachment #1 --] On Thu, May 17, 2001 at 01:19:20AM -0700, Harkirat Singh wrote: > > Hello: > > 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: > > #!/bin/bash > > number=$RANDOM > > echo $number > > then on shell if I say > > >sh test.sh > > Then I do'nt see any output?? I feel it strange!! sh != bash Kris [-- Attachment #2 --] -----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010517023613.A45689>
