On 9/7/24 09:26, Greg Wooledge wrote:
On Sat, Sep 07, 2024 at 08:56:08 -0400, Eben King wrote:Hi. I have bash 5.2.15(1). When I cd into an empty directory, and type "cd <tab><tab>", the shell offers 178 possibilities. If I restrict it to an initial letter and hit <tab> once, I think the spurious offerings are from $HOME. How can I make it not do that and only offer me things I ask for?Do you perhaps have the CDPATH variable set? That might affect tab completion for the cd command.
eben@cerberus:~$ echo "$CDPATH" :~:/ 0 eben@cerberus:~$ grep CDPATH /etc/profile /etc/profile.d/* ~/.profile ~/.bash_profile 1 eben@cerberus:~$ In fact I do. Good catch. Any idea where it could be set, other than the places I looked? -- GEMINI: Your birthday party will be ruined once again by your explosive flatulence. Your love life will run into trouble when your fiancee hurls a javelin through your chest. -- Weird Al, _Your Horoscope for Today_