dotnet / dotnet/command-line-api

RegisterWithDotnetSuggest does not honor symlinks

Open
#2,317 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
3.7k
Forks
428
PR merge metrics
No merged PRs in 30d

Description

On Linux, I have a Linux .NET executable with the full assembly name, installed at a custom installation location. For example:
```
/opt/company/product/Full.Assembly.Name.Executable
```
To make the program easily accessible, a symlink is installed, for example:
```
/usr/bin/executable -> /opt/company/product/Full.Assembly.Name.Executable
```

When invoked as `/usr/bin/executable` or simply `executable`, then `RegisterWithDotnetSuggest` actually registers `Full.Assembly.Name.Executable`.

Hint: The original (actually invoked) command is available as `/proc/self/cmdline` (up to the first NUL character). This is e.g. also what is displayed by `ps`.

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.