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

2009-07-14 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 fr

Pressing esc twice then left arrow deletes last character

2009-07-14 Thread James Rowell
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='li nux-gnu' -DCONF_MACHTYPE='x86_64-redhat-linux-gnu' -DCONF_VENDOR='redhat' -DLOCA LEDIR='/usr/share/locale'

Re: parallel several jobs in bash

2009-07-14 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [please consider making your mailer wrap long lines] According to Tim on 7/14/2009 12:02 PM: > Hi, > > I wonder how to in a bash script(or other languages if more convenient and/or fast) manage independent jobs(executables with command line arguments)

parallel several jobs in bash

2009-07-14 Thread Tim
Hi, I wonder how to in a bash script(or other languages if more convenient and/or fast) manage independent jobs(executables with command line arguments) and make them run in parallel? Is there a way to create several sub-process without waiting them to finish? Which one is faster: multi-threa

Mac OS X Unicode NFD filesystems and bash completion

2009-07-14 Thread Guillaume Outters
Configuration Information [Automatically generated, do not change]: Machine: powerpc OS: darwin8.11.0 Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='powerpc' - DCONF_OSTYPE='darwin8.11.0' -DCONF_MACHTYPE='powerpc-apple- darwin8.11.0' -DCONF_VENDOR='apple' -DLOCALEDIR='/usr/