Re: Double substitution issue

2018-11-21 Thread Greg Wooledge
On Tue, Nov 20, 2018 at 08:16:47PM -0800, fulldec...@gmail.com wrote: > I have found a way to use double expansion, and of course this is not safe > in all contexts: > > from=1;to=3;eval echo {$from..$to} for ((i=from; i<=to; i++)); do ... done.

$RANDOM not Cryptographically secure pseudorandom number generator

2018-11-21 Thread Ole Tange
'brand' in variables.c is comparable in size to ChaCha20 and ChaCha20 is not completely broken: https://en.wikipedia.org/wiki/Salsa20 Could we please replace 'brand' with ChaCha20? /Ole

Re: $RANDOM not Cryptographically secure pseudorandom number generator

2018-11-21 Thread Chet Ramey
On 11/21/18 3:07 PM, Ole Tange wrote: > 'brand' in variables.c is comparable in size to ChaCha20 and ChaCha20 > is not completely broken: > https://en.wikipedia.org/wiki/Salsa20 > > Could we please replace 'brand' with ChaCha20? What is your application that you need something more complicated th

Removing a function's function attribute makes `declare` not know it's a function (kind of)

2018-11-21 Thread Great Big Dot
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-unknown-linux-gnu' -DCONF_VENDOR='unknown' -DLOCALEDIR='/usr/share/locale'