Re: Comparison failure

2008-01-19 Thread Jan Schampera
Chet Ramey wrote: > Dave Rutherford wrote: > >> Now, "[[" isn't very well documented, so I tend not to use it, > > I'm always interested in suggestions for improving the bash documentation. > Can you tell me what's unclear about the existing description of > `[['? > > Chet > The documentation

Re: Comparison failure

2008-01-11 Thread Chet Ramey
Dave Rutherford wrote: I know test's quirks. Does [[ have quirks? Are they the same? Is there room in my grey matter to hold both sets of quirks and keep them straight? [[ was designed to remedy test's quirks, so it shouldn't really have any of its own. In addition to the functionality prov

Re: Comparison failure

2008-01-10 Thread Dave Rutherford
Chet Ramey wrote: > Dave Rutherford wrote: > > Now, "[[" isn't very well documented, so I tend not to use it, > > I'm always interested in suggestions for improving the bash documentation. > Can you tell me what's unclear about the existing description of > `[['? It's probably my fault. I just do

Re: Comparison failure

2008-01-10 Thread Chet Ramey
Dave Rutherford wrote: Now, "[[" isn't very well documented, so I tend not to use it, I'm always interested in suggestions for improving the bash documentation. Can you tell me what's unclear about the existing description of `[['? Chet -- ``The lyf so short, the craft so long to lerne.'' -

Re: Comparison failure

2008-01-10 Thread Pierre Gaston
On Jan 10, 2008 3:13 PM, Frans de Boer <[EMAIL PROTECTED]> wrote: > To: bug-bash@gnu.org > Subject: Comparison failure > > Following is a function which fails constantly. The function is being > called by other functions but the result is nowadays always this failure >

Re: Comparison failure

2008-01-10 Thread Andreas Schwab
Frans de Boer <[EMAIL PROTECTED]> writes: > You where both right. It's the '<' versus -lt. I tend to avoid -lt > because I always run into errors using this. Beside, in previous > versions of Bash it did not give me this problem. AFAICS all versions of bash that implement [[ ]] have always behave

Re: Comparison failure

2008-01-10 Thread Bernd Eggink
Frans de Boer schrieb: You where both right. It's the '<' versus -lt. I tend to avoid -lt because I always run into errors using this. Beside, in previous versions of Bash it did not give me this problem. But, i will give it a try in other functions to see if it works now everywhere as expected.

Re: Comparison failure

2008-01-10 Thread Frans de Boer
:13 PM, Frans de Boer <[EMAIL PROTECTED]> wrote: > > To: bug-bash@gnu.org > > Subject: Comparison failure > > > > Following is a function which fails constantly. The function is being > > called by other functions but the result is nowadays always this failure >

Re: Comparison failure

2008-01-10 Thread Dave Rutherford
On Jan 10, 2008 8:13 AM, Frans de Boer <[EMAIL PROTECTED]> wrote: > Following is a function which fails constantly. [...] > if [[ $i != -1 && $i < $((iPriTblCnt-1)) ]]; then > echo $((i+1)); > else > echo -1 > fi Now, "[[" isn't very well documented, so I tend not to use it, but noti

Comparison failure

2008-01-10 Thread Frans de Boer
To: bug-bash@gnu.org Subject: Comparison failure 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_MACH