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

2009-06-17 Thread Jim Paris
Chet Ramey wrote: > Jim Paris wrote: > > The cursor positioning in the prompt is sometimes wrong, > > depending on the contents of PS1 and the locale. > > > > Repeat-By: > > > > With this command, the cursor is positioned after the '5', as expected: > > > > env -i LC_CTYPE=en_US PS1=

Bash Auto Completion Fubar

2009-06-17 Thread Esben Stien
Dear bash help list members. I'm in serious need of help;). My problem deals with bash auto completion and the fact that it seems to be a little random in addition to the fact that I run my own distro, makes it a little hard to explain, as well, so bear with me. Basically, I've been building an

Re: bashbug chooses wrong $EDITOR executable

2009-06-17 Thread Daniel
On Jun 16, 9:38 pm, Chet Ramey wrote: > Bob Proulx wrote: > > It seems okay to leave PATH alone to me.  Why set it at all? I agree. If as a user I care to set my environment in some specific way, I expect other programs to honour my settings. If all my scripts were resetting PATH and hardcoding

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

2009-06-17 Thread dennis
I agree with you that it's better to have an extra command. I can work around that behavior. I'm sorry, I'm afraid I don't understand the following sentence: history -s will not delete the previous history entry before pushing the new entry if it's added to a previous entry as part of a compoun

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

2009-06-17 Thread Chet Ramey
> I'm sorry, I'm afraid I don't understand the following sentence: > > history -s will not delete the previous history entry before pushing the > new entry if it's added to a previous entry as part of a compound command. Readline (and the shell, really) works a line at a time. When a line is re