git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Git bug report CDPATH completion

From
PGPhilemon GIRAUD <philemon.giraud@metrologic.group>
Date
Mar 11, 2024, 14:24 UTC
Message-ID
<AM6PR10MB28087CFD43779194563F558492242@AM6PR10MB2808.EURPRD10.PROD.OUTLOOK.COM>

Thank you for filling out a Git bug report! Please answer the following questions to help us understand your issue.

What did you do before the bug happened? (Steps to reproduce your issue) This bug is about the "git bash" that comes with git for windows I added "export CDPATH=.:/c/some/path" to my .bashrc

What did you expect to happen? (Expected behavior) Given that the folder "/c/some/path/myfolder" exists, I expected to type (from any directory) "cd myf<TAB>" add that the autocomplete would complete to "cd myfolder"

What happened instead? (Actual behavior) The tab completion did not work, nothing happened when pressing tab.

What's different between what you expected and what actually happened? Tab completion after cd do work with normal path, but not for addtional path accessible thanks to CDPATH

Anything else you want to add: Note that the CDPATH variable do work: "cd myfolder" takes me to "/c/some/path/myfolder" all the time, whatever the starting directory is Lastest bash-completion (https://github.com/scop/bash-completion) do support completion with CDPATH (see https://github.com/scop/bash-completion/blob/master/completions/cd)

[System Info] git version: git version 2.44.0.windows.1 cpu: x86_64 built from commit: ad0bbfffa543db6979717be96df630d3e5741331 sizeof-long: 4 sizeof-size_t: 8 shell-path: /bin/sh feature: fsmonitor--daemon uname: Windows 10.0 19045 compiler info: gnuc: 13.2 libc info: no libc information available $SHELL (typically, interactive shell): C:\Program Files\Git\usr\bin\bash.exe

[Enabled Hooks] not run from a git repository - no hooks to showPhilémon Giraud  | CS engineer

Next: Junio C Hamano
Message 1 of 3 in “Git bug report CDPATH completion”
  1. Philemon GIRAUDMar 11, 2024
  2. Junio C HamanoMar 11, 2024
  3. brian m. carlsonMar 11, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.