dotnet / dotnet/command-line-api

bash completion script: tilde expansion

Open
#2,142 5 comments 1 reaction 0 assignees View on GitHub
Area-Completions bug
Dominant language
C#
Stars
3.7k
Forks
428
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.