help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] $RANDOM excludes value zero when called in a subscript


From: David
Subject: Re: [Help-bash] $RANDOM excludes value zero when called in a subscript
Date: Wed, 7 Aug 2019 00:04:01 +1000

On Tue, 6 Aug 2019 at 23:17, Greg Wooledge <address@hidden> wrote:
> On Tue, Aug 06, 2019 at 10:20:50AM +0200, Roger Price wrote:

> > The test program I wrote may be found at http://rogerprice.org/randtest.sh .

> > The anomaly also appears on Debian stretch BASH_VERSION=4.4.12(1)-release.  
> > Is
> > this a bug or am I doing something wrong?  - any hint would be very welcome.

> First mistake is making us go to a web page to retrive the script.

[...lots of great advice...]

A little extra, general hint: you can avoid many pitfalls by checking
parts of your code using the shellcheck tool:
https://www.shellcheck.net/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]