Re: (low priority) BUG: too large history=nohistory?

2012-01-30 Thread Chet Ramey
On 1/30/12 4:14 PM, Linda Walsh wrote: > It seems there is a a platform dependent bug somewhere: > >> HISTSIZE=$(((3**15)) > echo $HISTSIZE > 1000 > --- but you have no history... It depends on how the platform does integer truncation. Bash uses intmax_t for its numbers internally; t

Re: set -e in (subshells) does not work independently of outer context

2012-01-30 Thread Eric Blake
On 01/30/2012 02:27 PM, Linda Walsh wrote: > > > Chet Ramey wrote: > >> As Eric said, the other parts of the Posix description make it clear that >> the `ignoring set -e' status is inherited by subshells. > > > The original POSIX standard made this clear -- in that > it was only a fail

Re: set -e in (subshells) does not work independently of outer context

2012-01-30 Thread Linda Walsh
Chet Ramey wrote: As Eric said, the other parts of the Posix description make it clear that the `ignoring set -e' status is inherited by subshells. The original POSIX standard made this clear -- in that it was only a failure of a 'simple' command that resulted' in an err-exit'.

(low priority) BUG: too large history=nohistory? (was: Re: How to enable infinite command history)

2012-01-30 Thread Linda Walsh
It seems there is a a platform dependent bug somewhere: > HISTSIZE=$(((3**15)) echo $HISTSIZE 1000 --- but you have no history... Pierre Gaston wrote: Setting HISTFILESIZE to 2147483647 gives you 68 years of history at one command per seconds (I hope I got my math right) with say

Re: bash man page needs more examples...(i.e. >0)

2012-01-30 Thread Chet Ramey
On 1/30/12 2:24 PM, DJ Mills wrote: >> How is `INTEGER' any clearer? Integer constants can be specified as octal >> or hex. > > Well, ok. The quoted section from the man page specifies a decimal. How about `decimal whole number between 2 and 64'? -- ``The lyf so short, the craft so long to ler

Re: bash man page needs more examples...(i.e. >0)

2012-01-30 Thread Linda Walsh
DJ Mills wrote: OK. �How about if that sentence began with `When specifying n, the digits greater ...'? declare -i foo; foo=20#a2; echo "$foo" 202 [base#]n, 'base' is a INTEGER 2-64, then '#', followed by the number. --- Slightly more exact/pedantic, how about: Syntax for integer cons

Re: bash man page needs more examples...(i.e. >0)

2012-01-30 Thread DJ Mills
> How is `INTEGER' any clearer?  Integer constants can be specified as octal > or hex. Well, ok. The quoted section from the man page specifies a decimal.

Re: bash man page needs more examples...(i.e. >0)

2012-01-30 Thread Chet Ramey
> > OK.  How about if that sentence began with `When specifying n, the > > digits greater ...'? > > declare -i foo; foo=20#a2; echo "$foo" > 202 > > [base#]n, 'base' is a INTEGER 2-64, then '#', followed by the number. How is `INTEGER' any clearer? Integer constants can be specified as octal or

Re: bash man page needs more examples...(i.e. >0)

2012-01-30 Thread Pierre Gaston
On Mon, Jan 30, 2012 at 9:02 PM, Linda Walsh wrote: > > > DJ Mills wrote: > >>> OK. �How about if that sentence began with `When specifying n, the >>> digits greater ...'? >> >> >> declare -i foo; foo=20#a2; echo "$foo" >> 202 >> >> [base#]n, 'base' is a INTEGER 2-64, then '#', followed by the num

Re: bash man page needs more examples...(i.e. >0)

2012-01-30 Thread Linda Walsh
DJ Mills wrote: OK. �How about if that sentence began with `When specifying n, the digits greater ...'? declare -i foo; foo=20#a2; echo "$foo" 202 [base#]n, 'base' is a INTEGER 2-64, then '#', followed by the number. ^^^ That's much more clear!

Re: How to enable infinite command history

2012-01-30 Thread Pierre Gaston
On Mon, Jan 30, 2012 at 8:01 PM, Ivan Yosifov wrote: > Hi everyone, > > I got an admittedly basic question but I'm really at my wits' end with > this. > > How do I enable infinite command history ? > > One simple suggestion I've seen online is to set HISTSIZE and > HISTFILESIZE to a large number.

How to enable infinite command history

2012-01-30 Thread Ivan Yosifov
Hi everyone, I got an admittedly basic question but I'm really at my wits' end with this. How do I enable infinite command history ? One simple suggestion I've seen online is to set HISTSIZE and HISTFILESIZE to a large number. This is not what I need, I want genuinely unconstrained history fil

Re: bash man page needs more examples...(i.e. >0)

2012-01-30 Thread DJ Mills
> OK.  How about if that sentence began with `When specifying n, the > digits greater ...'? declare -i foo; foo=20#a2; echo "$foo" 202 [base#]n, 'base' is a INTEGER 2-64, then '#', followed by the number.