Bug 2267422
| Summary: | `tldr --list` gets wrong output | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | ciuzhienki |
| Component: | tldr | Assignee: | Lumír Balhar <lbalhar> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 39 | CC: | dreua, lbalhar, mikel |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | tldr-3.3.0-2.fc41 tldr-3.3.0-2.fc40 tldr-3.3.0-2.fc39 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2024-07-01 16:05:36 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Thank you for the report. The problem with `--list` has already been fixed upstream, see https://github.com/tldr-pages/tldr-python-client/pull/222 But there is no new release available after the fix. I've asked upstream about plans for the new release: https://github.com/tldr-pages/tldr-python-client/issues/237 I'm able to reproduce the problem with language-specific cache so I reported it upstream as well: https://github.com/tldr-pages/tldr-python-client/issues/238 My fix for the language-specific cache folders has been merged. Hope they'll prepare a new release soon so we can simply update in Fedora. FEDORA-2024-f142587256 (tldr-3.3.0-2.fc41) has been submitted as an update to Fedora 41. https://bodhi.fedoraproject.org/updates/FEDORA-2024-f142587256 FEDORA-2024-f142587256 (tldr-3.3.0-2.fc41) has been pushed to the Fedora 41 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2024-791cc5358f (tldr-3.3.0-2.fc39) has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2024-791cc5358f FEDORA-2024-e94ef42dcb (tldr-3.3.0-2.fc40) has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2024-e94ef42dcb FEDORA-2024-791cc5358f has been pushed to the Fedora 39 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-791cc5358f` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-791cc5358f See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2024-e94ef42dcb has been pushed to the Fedora 40 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-e94ef42dcb` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-e94ef42dcb See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2024-e94ef42dcb (tldr-3.3.0-2.fc40) has been pushed to the Fedora 40 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2024-791cc5358f (tldr-3.3.0-2.fc39) has been pushed to the Fedora 39 stable repository. If problem still persists, please make note of it in this bug report. |
Two issues were noticed in total. 1. When the system language is Chinese, tldr cache is placed under "~/.cache/tldr/pages.zh/", but `tldr --list` only searches "~/.cache/tldr/pages/". 2. `tldr --list` should returns commands separated by '\n', not a list. In "tldr.py", upstream code use `print('\n'.join(get_commands(options.platform)))` instead of `print(get_commands(options.platform))`. Reproducible: Always Steps to Reproduce: 1. Change system language to Chinese. 2. Run `tldr --list`. Actual Results: [] Expected Results: command1 command2 command3 ...