Bug 1489159 - Bogus output from select-editor
Summary: Bogus output from select-editor
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: sensible-utils
Version: 26
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Sandro Mani
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-06 20:29 UTC by Max Halldén
Modified: 2017-09-30 06:19 UTC (History)
3 users (show)

Fixed In Version: sensible-utils-0.0.9-8.fc26 sensible-utils-0.0.9-8.fc25 sensible-utils-0.0.9-8.fc27
Clone Of:
Environment:
Last Closed: 2017-09-15 22:22:43 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Max Halldén 2017-09-06 20:29:23 UTC
Description of problem:
Gets a bunch of bogus alternatives when running select-editor.

It looks like alternatives isn't called correctly.

Version-Release number of selected component (if applicable):
sensible-utils-0.0.9-6.fc26.noarch

How reproducible:
Every time.

Steps to Reproduce:
1. run select-editor

Actual results:

Select an editor.  To change later, run 'select-editor'.
  1. alternatives
  2. version
  3. 1.10
  4. -
  5. Copyright
  6. (C)
  7. 2001
  8. Red
  9. Hat,
  10. Inc.
  11. This
  12. may
  13. be
  14. freely
  15. redistributed
  16. under
  17. the
  18. terms
  19. of
  20. the
  21. GNU
  22. Public
  23. License.
  24. usage:
  25. alternatives
  26. --install
  27. <link>
  28. <name>
  29. <path>
  30. <priority>
  31. [--initscript
  32. <service>]
  33. [--family
  34. <family>]
  35. [--slave
  36. <link>
  37. <name>
  38. <path>]*
  39. alternatives
  40. --remove
  41. <name>
  42. <path>
  43. alternatives
  44. --auto
  45. <name>
  46. alternatives
  47. --config
  48. <name>
  49. alternatives
  50. --display
  51. <name>
  52. alternatives
  53. --set
  54. <name>
  55. <path>
  56. alternatives
  57. --list
  58. alternatives
  59. --remove-all
  60. <name>
  61. common
  62. options:
  63. --verbose
  64. --test
  65. --help
  66. --usage
  67. --version
  68. --keep-missing
  69. --altdir
  70. <directory>
  71. --admindir
  72. <directory>

Choose 1-72 []: 


Expected results:


Additional info:
No editor configured before running command.

Comment 1 Sandro Mani 2017-09-06 20:45:17 UTC
Looks like the call should be

update-alternatives --config editor

instead of

update-alternatives --list editor

but on my system, update-alternatives --config editor does nothing. Can you verify whether switching --list to --config in /usr/bin/select-editor fixes the issue?

Comment 2 Max Halldén 2017-09-06 21:33:04 UTC
It doesn't output anything, but then at least it's consistent with the output from update-alternatives --config editor (nothing).

I think you're correct that it should be --config, but I think there's some problem with update-alternatives since nothing is listed for editor?

Comment 3 Sandro Mani 2017-09-06 21:35:45 UTC
Right, would you mind taking it to chkconfig for the update-alternatives issue? I'll patch sensible-utils to use --config.

Comment 4 Max Halldén 2017-09-06 21:38:31 UTC
Sure, I'll do that. Thanks for your help!

Comment 5 Fedora Update System 2017-09-06 21:47:11 UTC
sensible-utils-0.0.9-8.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-7b983fd199

Comment 6 Fedora Update System 2017-09-06 21:47:18 UTC
sensible-utils-0.0.9-8.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-76639229fd

Comment 7 Fedora Update System 2017-09-06 21:47:24 UTC
sensible-utils-0.0.9-8.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-e1f633661f

Comment 8 Fedora Update System 2017-09-07 14:33:15 UTC
sensible-utils-0.0.9-8.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-7b983fd199

Comment 9 Fedora Update System 2017-09-08 00:24:23 UTC
sensible-utils-0.0.9-8.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-76639229fd

Comment 10 Fedora Update System 2017-09-08 01:21:51 UTC
sensible-utils-0.0.9-8.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-e1f633661f

Comment 11 Fedora Update System 2017-09-15 22:22:43 UTC
sensible-utils-0.0.9-8.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2017-09-16 03:24:13 UTC
sensible-utils-0.0.9-8.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 13 Fedora Update System 2017-09-30 06:19:54 UTC
sensible-utils-0.0.9-8.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.