commit:     f1531389892498e54c9ca445c352fa814bcc87cd
Author:     Sv. Lockal <lockalsash <AT> gmail <DOT> com>
AuthorDate: Thu Aug  7 20:23:30 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Oct 23 17:38:08 2025 +0000
URL:        
https://gitweb.gentoo.org/proj/binutils-config.git/commit/?id=f1531389

Fix eselect bash autocompletion

eselect wants strictly 2 spaces to complete `eselect binutils set ...`:
https://gitweb.gentoo.org/proj/eselect.git/tree/misc/eselect.bashcomp#n15

Signed-off-by: Sv. Lockal <lockalsash <AT> gmail.com>
Part-of: https://github.com/gentoo/binutils-config/pull/4
Closes: https://github.com/gentoo/binutils-config/pull/4
Signed-off-by: Sam James <sam <AT> gentoo.org>

 src/binutils-config | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/binutils-config b/src/binutils-config
index 9bc195c..0160196 100755
--- a/src/binutils-config
+++ b/src/binutils-config
@@ -409,16 +409,16 @@ list_profiles() {
                fi
 
                # We would align the [...] field like so:
-               #printf ' [%*ss] %s\n' ${##} "${i}" "${x}"
+               #printf '  [%*ss] %s\n' ${##} "${i}" "${x}"
                # but this breaks simple scripting: `binutils -l | awk '{print 
$2}'`
 
                # Or we could align the target col like so:
-               #printf ' [%s]%*s %s\n' "${i}" $(( ${##} - ${#i} )) "" "${x}"
+               #printf '  [%s]%*s %s\n' "${i}" $(( ${##} - ${#i} )) "" "${x}"
                # but i'm not sold that it looks better
 
                # So keep it simple ... only makes a diff anyways for crazy 
people
                # like me which have 100+ binutils packages installed ...
-               echo " [$i] ${x}"
+               echo "  [$i] ${x}"
                ((++i))
        done
 }

Reply via email to