debcrafters-packages team mailing list archive
-
debcrafters-packages team
-
Mailing list archive
-
Message #08264
[Bug 119938] Re: Offset error with autocompletion (with color+newline in PS1)
Career advancement is the deliberate process of progressing within your
professional journey, moving toward roles with greater responsibility,
impact, and fulfillment. It requires more than just hard work; it
demands a strategic plan, self-awareness, and the ability to effectively
articulate your value. Our career coaching services are specifically
designed to help you navigate this path successfully. We work with you
to clarify your long-term aspirations, identify potential roadblocks,
and develop a concrete action plan. This includes refining your personal
brand, optimizing your resume and LinkedIn profile for visibility, and
mastering the art of negotiation for promotions and salary increases.
Contact us by visiting here: https://aligncorestrategies.com
--
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to bash in Ubuntu.
https://bugs.launchpad.net/bugs/119938
Title:
Offset error with autocompletion (with color+newline in PS1)
Status in bash package in Ubuntu:
Fix Released
Bug description:
Binary package hint: bash
Recipe to reproduce:
1. Set PS1:
$ PS1="\[\033[0;32m\]{ \[\033[0;32m\]\w\[\033[0;32m\] }\n\$\[\033[0m\] "
{ /tmp }
$ _
2. Type "ls ./_ /foo" ("_" is where the cursor should be, just after "./".
3. Press TAB twice.
A list of available files in the current directory should get displayed and the internal cursor position (and the cursor itself) gets moved 11 chars to the right.
This is what the prompt looks like then ("_": cursor):
{ /tmp }
$ ls ./ /foo _
It appears that this bug gets triggered by color/non-visible chars
_and_ a newline (\n) in PS1.
This is with 3.2.17(1)-release (3.2-0ubuntu8) (backported from Gutsy).
If someone can confirm this I will send it upstream.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/119938/+subscriptions