Re: Inconsistent results when history -s is used within PROMPT_COMMAND

2009-06-12 Thread DennisW
Wow, that got really mangled somewhere! Here's the main part of the test script again. Hopefully it'll come through OK this time. histt() { local space='' space="${1:+ }" # set space to a space of there's a $1 local hist local comment hist=$(history 1) hist="${hist# *[0-9]* }"

Re: Cursor positioning in prompt is sometimes wrong, depending on locale and PS1

2009-06-12 Thread Chet Ramey
Jim Paris wrote: > 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' -DLOCALE