Re: Bug fix for $((x**y)) algorithm on 64+ bits machines.

2011-09-17 Thread Nicolas ARGYROU
You're right. Then, just do what you want with this piece of code, I make it public domain: no restriction at all on using it. It's a gift to bash as I use it a lot. I also accept that you put my name and/or email with the piece of code in case someone wants to contact the author. :-) Regards,

Re: multi-dimensional arrays

2011-09-17 Thread Chet Ramey
On 9/17/11 10:26 AM, Gerard Seibert wrote: > Just out of curiosity, are there any plans to make multi-dimensional > array variables available in future versions of Bash? I would find it > extremely useful. I don't have any current plans to add multi-dimensional arrays. How would you use them? M

multi-dimensional arrays

2011-09-17 Thread Gerard Seibert
Just out of curiosity, are there any plans to make multi-dimensional array variables available in future versions of Bash? I would find it extremely useful. -- Gerard ✌ ger...@seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To heade

Re: ^O gets stuck if there's a bunch of history

2011-09-17 Thread gregrwm
> > Repeat-By: > > rm $HISTFILE                            #start with no history file > > exec -cl bash --norc --noprofile        #start with no history in memory > > pm=1.2.3.4                              #do some commands > > sb='echo sudo -uboo' > > ssb="$sb ssh -p1234 $pm cd boo;" > > $ssb 'e

Re: Bug fix for $((x**y)) algorithm on 64+ bits machines.

2011-09-17 Thread Nicolas ARGYROU
I'm glad it pleases you. I'm amazed also how fast it deals with large numbers. Feel free to use it. :) I came up with a version that is slightly more precise in the comments, and that uses 3 registers instead of 4 (though gcc can optimize that): // Copyright 2011: Nicolas Argyrou , public dom