Re: Purge History of rm commands

2011-09-19 Thread Roger
> On Mon, Sep 19, 2011 at 08:38:44AM -0400, Greg Wooledge wrote: >On Sun, Sep 18, 2011 at 10:11:17PM -0800, Roger wrote: >> > On Mon, Sep 19, 2011 at 01:37:22AM -0400, Mike Frysinger wrote: >> >On Monday, September 19, 2011 01:18:02 Roger wrote: >> >> I'm stumped on this as my history is in the for

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

2011-09-19 Thread Chet Ramey
On 9/17/11 8:41 AM, gregrwm wrote: >>> 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

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

2011-09-19 Thread Nicolas ARGYROU
Hello, I noticed other shells have the same bug, and perhaps you would like to use this code in other GNU projects (like making a library call or an executable). The best, I think, is to transfer the copyright to bash maintainers. You can now copyright and license it the way you want: templa

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

2011-09-19 Thread Chet Ramey
On 9/16/11 4:39 PM, Nicolas ARGYROU wrote: > Bash Version: 4.0 > Patch Level: 33 > Release Status: release > > Description: > The algorithm used to calculate x to the power of y: x**y > takes O(y) time which is way too long on systems using 64 bits. > Calculating for exemple $((3**2**

Re: Purge History of rm commands

2011-09-19 Thread Greg Wooledge
On Sun, Sep 18, 2011 at 10:11:17PM -0800, Roger wrote: > > On Mon, Sep 19, 2011 at 01:37:22AM -0400, Mike Frysinger wrote: > >On Monday, September 19, 2011 01:18:02 Roger wrote: > >> I'm stumped on this as my history is in the format of: > >> > >> $ tail ~/.bash_history > >> #1316296633 > >> man b

Re: multi-dimensional arrays

2011-09-19 Thread Greg Wooledge
On Sat, Sep 17, 2011 at 08:53:32PM -0400, Chet Ramey wrote: > 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 cu

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

2011-09-19 Thread Greg Wooledge
From: 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 ca

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

2011-09-19 Thread Nicolas ARGYROU
I'm ok with using Bash's licence. - Original Message - From: William Park To: Nicolas ARGYROU Cc: bashbug Sent: Monday, September 19, 2011 3:33 AM Subject: Re: Bug fix for $((x**y)) algorithm on 64+ bits machines. No.  For example, current Bash is copyrighted and licensed by the co