Allow command parameters for lsb_release to be combined
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 3.2k
- Forks
- 692
- PR merge metrics
- No merged PRs in 30d
Description
Is your feature request related to a problem? Please describe.
Earlier it was discovered that when trying to run brew on Photon OS, the way that it calls lsb_release is the common practice of combining parameters e.g. lsb_release -sd.
This, however, results in a syntax error within Photon since Photon's lsb_release does not support this behavior. Each parameter must be entered one at a time.
Describe the solution you'd like
Allow lsb_release to be called with combining short name parameters.
lsb_release -sd should behave the same as lsb_release -s -d
Describe alternatives you've considered
I have had to modify lsb_release by hand using a solution that works just enough to be able to get brew running within Photon, but this is not a good solution because my deployment script now has to deploy a custom system file in addition to my application code.
Additional context
I would imagine there are other linux tools that also use lsb_release in the same manner.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the lsb_release entry point and the code that parses its command-line parameters. Check how combined short options such as -sd are handled, then verify that they behave the same as separate -s -d parameters; the issue does not name a test file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux
- Domain
- cli, operating-systems
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100