dotnet / dotnet/command-line-api
bash completion script: tilde expansion
- Lingua principale
- C#
- Stelle
- 3.7k
- Fork
- 428
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
For `~`, the current behavior is:
- The .NET app gets the `WordToComplete` with the `~`,
- And if it returns an completion item with a `~`, the bash completion script replaces that `~` with the user HOME.
Instead:
- The .NET application should get a `WordToComplete` where the `~` is already expanded: it is not the .NET app's responsibility to handle `~`.
- Completion items returned by the .NET app should be returned literally.
cc @jonsequitur @adamsitnik
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Start by locating the bash completion script and the .NET completion entry point that supplies WordToComplete. Reproduce completion for ~, then trace how tildes are expanded in the input and in returned completion items. Done means the application receives an expanded path and returned items remain literal.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- bash, csharp
- Ambito
- cli
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 38/100