New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Commands that have different names among distros #7596
Comments
If I recall, there's was a command a while back where we had some serious trouble like this, but I can't remember what it was called, or the solution we put in place. I'd advise giving the variants different names, and use a Should there be a common denominator though, it's perhaps better to document that instead and have 1 page instead of multiple. |
There are several ways we can view this issue:
What I'm trying to say is that the solution is not straight-forward at all. It's not easy to implement a system that's both "clean" from a code perspective, and make it easy and convenient to use from a user perspective, not to mention the effort required to update the protocol/format/standard and have various clients implement them. |
A potential solution I'm thinking of is "the Wikipedia solution". I.e. Simply have a disambiguation page as the main landing page for the name in question, which lists
|
@cyqsimon Your solution is great. |
A few checklist items, if the Wikipedia solution is to be adopted:
I'll add more if they come to mind. |
This comment has been minimized.
This comment has been minimized.
No no, you're completely misunderstanding the relationship between As of why I suggest we have a "disambiguation string", this is so that from a client perspective it's easy to differentiate a normal page from a disambiguation (or you may call it "redirection") page. The client program may be modified to handle such pages differently, so you might get something like this:
Of course old clients without a special implementation for disambiguation pages will still work - they can simply treat the disambiguation page as a regular page since it conforms to all the specifications of a regular page. Then the user simply has to run the |
What I am implicitly saying, is that the markdown file name should be a unique identifier for a binary, rather than a 1-to-1 match for its actual name on a particular distro. Much like how on Wikipedia, https://en.wikipedia.org/wiki/Python points to the disambiguation page, while python (as in snake) resides in https://en.wikipedia.org/wiki/Pythonidae, and Python (as in language) resides in https://en.wikipedia.org/wiki/Python_(programming_language). |
Oh, I understand the concept of Wikipedia solution. Then you can just implement it in your PR. You may explain this with the Wikipedia python example to other maintainers since this is a new idea of tldr. |
Doesn't tldr have a formal RFC-like process for big changes like this? I'm happy to implement my PR this way of course, but I would like to see more discussion before merging my changes, just in case there are pitfalls we haven't managed to catch. After all, this would set a precedence and if so, it would be nice if we first formalise it as a standard. |
I think we should keep this simple and un-reliant of clients being updated since that will cause a lot of issues since some which are used aren't actively updated. My suggestion, doesn't match the page name unfortunately however, my suggestion is to add a note to the lid.md page and mention a then make some new pages called lid-arch.md and then lid-redhat.md The ubuntu page should probably be the top edit, didn't read the other solutions but some of this suggestion still stands. |
Creating alias is the right option just in case two commands are identical in their behavior and the only difference is their names. :) |
Sup other mods? Are you still working on this or can we clean this up? |
Any update on this? So we can close/merge #7578 |
Hey there, @sebastiaanspeck, @Waples! It looks like this issue was created more as a discussion point about what to do in a specific case. It seems like a decision was reached by @MasterOdin, so this is really just blocking on #7578. I would agree with @MasterOdin in that a |
We can follow the same approach as |
It has been a month and nothing happened to the PR or this issue. When are we going to take over the PR and close this issue? |
@sebastiaanspeck I've commented on the PR. Thanks for the reminder, I think we've all been avoiding the messiness of this specific issue. I wouldn't rush this one, but thanks again for the reminder. |
Absolutely no need to rush, just a friendly reminder we still have some work to do :) |
Now that #7578 is closed, I believe we can close this one too. The adopted solution is to align page names to Debian's binary names, due to the fact that Debian is the most popular base distro. Then, if the binary is shipped under an alias on another non-Debian-based distro:We add the following line before > On <insert distro>, this program is installed as `<insert alias>`. if the name is taken by another program on another non-Debian-based distro (i.e. needs disambiguation):We add the following line before > On <insert distro>, the binary name `<insert name>` is taken by another program. See `tldr <insert Debian name for that program>`. Consider the command The solution here is to document id-utils's Then, we added a disambiguation note to Note that this solution ONLY covers the very specific case of "commands that have conflicting names across various linux distros", NOT the more general case of "commands have conflicting names". That should probably be discussed and decided on a case-by-case basis. If this explanation is incorrect, I hereby give permission for maintainers to edit this comment to keep the history of this issue tidy, so long as you leave a changelog behind. |
@sbrl I've made quite a few amendments and clarifications. Also I've reduced the scope of applicability because I'd rather this solution be narrow and well-defined than broad and loose. Please take a look, thanks. |
For #7578. There exist some commands which have different name in different distros. For example:
lid
inlibuser
lid
inid-utils
libuser-lid
lid
lid
lid
(AUR)lid-idutils
(AUR)Currently there is no document for dealing with such situation. I personally think that making a new template for the rare cases is not a good idea, because it only makes guideline more complex. Here are 2 solutions I thought about:
Any idea?
The text was updated successfully, but these errors were encountered: