off by one in wrapping long lines in bash-3.1

2006-01-12 Thread Mike Frysinger
Configuration Information: Machine: x86_64 OS: linux-gnu Compiler: x86_64-pc-linux-gnu-gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL -D

Re: Conditional expression problem: both "-a file" and "! -a file" return true

2006-01-12 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Eric Blake on 1/7/2006 8:17 AM: > > Now, in this case, you have three arguments, and POSIX requires that the > binary operator "-a" have higher precedence than the "!" negation operator > on a 2-argument test. And the one-argument test o

Re: Background processes receive SIGINT even though they shouldn't

2006-01-12 Thread Chet Ramey
Ingemar Nilsson wrote: > Machine Type: i386-redhat-linux-gnu > > Bash Version: 3.0 > Patch Level: 16 > Release Status: release > > Description: > In some cases, background processes receive SIGINT from the > terminal where it was started even though the manual states > th

Re: Conditional expression problem: both "-a file" and "! -a file" return true

2006-01-12 Thread Paul Jarc
Eric Blake <[EMAIL PROTECTED]> wrote: > But the RATIONALE (XCU line 35443) states that "The ! operator has higher > precedence than the -a operator, and the -a operator has higher precedence > than the -o operator." Therefore, when -a is defined as a unary operator, > an XSI compliant test is requ

Re: off by one in wrapping long lines in bash-3.1

2006-01-12 Thread Chet Ramey
Mike Frysinger wrote: > Configuration Information: > Machine: x86_64 > OS: linux-gnu > Compiler: x86_64-pc-linux-gnu-gcc > Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' > -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' > -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/

Re: off by one in wrapping long lines in bash-3.1

2006-01-12 Thread Mike Frysinger
On Thursday 12 January 2006 14:21, Chet Ramey wrote: > > Repeat-By: > > - run 'bash' > > - hold down a letter until it gets to the edge of the terminal > > - observe the line wrapping too soon and overwriting current line > > - hit enter/resize terminal/etc... > > - hold down a letter until it