Re: Prompt length calculation fails when UTF-8 is used within \[ \]

2009-07-21 Thread Lasse Kärkkäinen
Steps to reproduce: (using UTF-8 locales) $ export PS1="\[\e]2;test Ä and Ö here\a\]prompt>" prompt>abcdefgh# Enter some alphabets and press Home ^ Cursor goes here, instead of ^ here where it should go. Add more UTF-8 letters as non-printable characters in PS1 and the offset fro

Re: Prompt length calculation fails when UTF-8 is used within \[ \]

2009-07-21 Thread Chet Ramey
Lasse Kärkkäinen wrote: >> Can you reproduce this with bash-4.0 with all 24 patches applied? I >> still have more testing to do, but I haven't been able to reproduce >> it on my Mac OS X development machines. > > Which patches? Do you use some kind of VCS where I could just get the > current sou

Re: builtin test command file existence fails with negation

2009-07-21 Thread Chet Ramey
> Bash Version: 3.2 > Patch Level: 48 > Release Status: release > > Description: > Use of the '-a' option to the builtin test command fails to > produce the correct result when used with negation. The specific > error the case where the file exists and a "test ! -a file" is >

Re: builtin test command file existence fails with negation

2009-07-21 Thread Lynn Kerby
On Jul 21, 2009, at 8:53 AM, Andreas Schwab wrote: Lynn Kerby writes: Use of the '-a' option to the builtin test command fails to produce the correct result when used with negation. The specific error the case where the file exists and a "test ! -a file" is exe

Re: builtin test command file existence fails with negation

2009-07-21 Thread Andreas Schwab
Lynn Kerby writes: > Use of the '-a' option to the builtin test command fails to > produce the correct result when used with negation. The specific > error the case where the file exists and a "test ! -a file" is > executed. If the script is changed to use '-e' for file >

builtin test command file existence fails with negation

2009-07-21 Thread Lynn Kerby
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_MACHTYPE='x86_64-pc-linux-gnu' - DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DP