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.
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?
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?
Right, would you mind taking it to chkconfig for the update-alternatives issue? I'll patch sensible-utils to use --config.
Sure, I'll do that. Thanks for your help!
sensible-utils-0.0.9-8.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-7b983fd199
sensible-utils-0.0.9-8.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-76639229fd
sensible-utils-0.0.9-8.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-e1f633661f
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
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
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
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.
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.
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.